forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on b71a9c2d2a40d49b3476d0972c3a41fd9790bdec

Today

B10: ec-flac FlacDecoder decodes every frame in a packetAhmet Kaan Gümüş · b71a9c2
B10: ec-flac FlacDecoder decodes every frame in a packet

send_packet decoded only the first FLAC frame and silently dropped the rest.
Now all frames in the packet are interleaved into one AudioFrame; a format
change inside the packet is Unsupported via check_same_format. The sample
format match moves out of the per-sample loop. Output changes only for
packets holding more than one frame, toward the container/ffmpeg behaviour.
Evidence: cargo check/clippy ec-flac; flac golden and xiph_vectors to run by orchestrator.
B10: ec-flac decode: resume after a corrupt frame at start+1, shared check_same_formatAhmet Kaan Gümüş · ed1f730
B10: ec-flac decode: resume after a corrupt frame at start+1, shared check_same_format

next_block left pos at the frame start on Err, so a caller that retried
after Corrupt re-parsed the same frame forever. Set pos = start + 1 up front;
the success path still overwrites it with the frame end.
decode_all's format-change check moves to check_same_format, which
send_packet reuses. expect on block.header becomes ok_or.
Evidence: cargo check/clippy ec-flac; golden flac and xiph_vectors to run by orchestrator.
Cargo.lock for golden subs depsAhmet Kaan Gümüş · c06146fBrowse files
FLAC framing: frame end is the first sync whose preceding frame passes its footer CRC-16, not the first header-plausible syncAhmet Kaan Gümüş · 65e0b1a
FLAC framing: frame end is the first sync whose preceding frame passes its footer CRC-16, not the first header-plausible sync

flac-5.1-44100.flac (pinned ffmpeg 9.0.2, sha256 matches fixtures.sha256): packet 7 is at byte 45447, 5908 bytes. A sync-like header at byte 47501 inside the audio passes header CRC-8, so the probe cut the packet there and the subframe decode ran out of data (need more data). ffprobe lists the packet as 5908 bytes; the footer CRC-16 over [45447,51353) equals the stated 53762 at 51355 and does not match at 47501. Falls back to the first plausible sync when no candidate verifies, so damaged streams behave as before
ec-av1 encoder tests: Sintel readers seek 20 s (h264_clip_frames, rav1e bench) instead of 0 sAhmet Kaan Gümüş · bb947d2
ec-av1 encoder tests: Sintel readers seek 20 s (h264_clip_frames, rav1e bench) instead of 0 s

Sintel trailer frames 0..1 s are pure black (ffmpeg 9.0.2 signalstats YAVG=0 at 0 s,
YAVG 44 at 20 s), so the rate-control gates were fed degenerate content (22 bytes/frame).
Same seek as the pin test in encode/more_tests.rs. Pins untouched; re-pin after run.
ec-ac3 real_library: allow ffmpeg's trailing truncated frame in sample countAhmet Kaan Gümüş · 65a1e04
ec-ac3 real_library: allow ffmpeg's trailing truncated frame in sample count

monsters_inc_5.1_448_small.ac3 is 100000 bytes: 55 whole 1792-byte frames plus a 1440-byte stub. ffmpeg 9.0.2 reports 'incomplete frame' and still emits 1536 samples/ch for it (516096 f32 total = 86016/ch, 56 frames); the decoder correctly stops at 55 (506880 total). Truncating the first 55 frames gives ffmpeg 506880 exactly. Test now allows at most one extra frame of ffmpeg output, then compares the common prefix.