mirror of
https://github.com/storytold/filmcraft.git
synced 2026-10-29 20:47:00 -06:00
A tiny header naming ~1000 channels on a 64M-pixel line sized each chunk buffer at hundreds of GB and Vec::with_capacity aborted the process. Chunks over 256 MB are refused, and the RLE / zlib buffers reserve with try_reserve_exact. Regression test: huge_scan_lines_are_refused_before_allocating. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
846 B
TOML
27 lines
846 B
TOML
[package]
|
|
name = "filmcraft-media"
|
|
description = "Media sources: probing, decoding traits, frame cache, generators, stills"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
filmcraft-time = { workspace = true }
|
|
filmcraft-color = { workspace = true }
|
|
filmcraft-frame = { workspace = true }
|
|
filmcraft-dng = { workspace = true }
|
|
rayon = { workspace = true }
|
|
serde = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "gif", "webp", "tiff", "bmp"] }
|
|
|
|
[dev-dependencies]
|
|
filmcraft-testkit = { workspace = true }
|
|
filmcraft-dng = { workspace = true, features = ["writer"] }
|
|
# APNG fixtures for the animated-image tests (the image crate does not encode APNG)
|
|
png = "0.18"
|