Commits
Commits on
eb345bb202d40b592a198dd2a11d6817f99af8f2Today
B5: one PCM table (pcm_codec/pcm_bits) shared by ec-matroska demux and muxAhmet Kaan Gümüş · 22a6626
B5: one PCM table (pcm_codec/pcm_bits) shared by ec-matroska demux and mux pcm_bits(CodecId) gives (big, float, bits); mux picks the A_PCM element name from it. Mux emits no BitDepth, so bytes are unchanged for all codecs it accepted before. BE 24/32 stay refused by mux. Doc comment removed (no comments rule).
B4: flush steers every encoded frame before returning the first steer error, no ? mid-loopAhmet Kaan Gümüş · 98458adBrowse files
B5: ec-probe reads PcmS24Be/PcmS32BeAhmet Kaan Gümüş · c776375
B5: ec-probe reads PcmS24Be/PcmS32Be Demux now maps A_PCM/INT/BIG to S24Be/S32Be, which ec-probe did not read (is_pcm and pcm() lacked them), so those tracks would fail to decode. Added the BE arms mirroring the LE ones. Only BE 24/32 PCM tracks are affected. Evidence: cargo check and clippy ec-probe; orchestrator runs goldens.
B4: report GPU reset once at decoder poisoning, not on every poisoned() callAhmet Kaan Gümüş · 392204e
B4: report GPU reset once at decoder poisoning, not on every poisoned() call poisoned() is called from check_alive on every decode after poisoning, so it bumped the global reset epoch each time and killed every live session. poison() now reports only on the first transition. Evidence: review of 3ca94e37; cargo check and clippy ec-hw clean.
B2: regression for PPS pic_init_qp_minus26 range checkAhmet Kaan Gümüş · 92a771d
B2: regression for PPS pic_init_qp_minus26 range check Input RBSP [CE 01 A4] encodes pic_init_qp_minus26 = 26 (out of -62..=25) and must be refused as Corrupt. Evidence: spec 7.4.2.2 range; the check was added in fbcc820d.
B4: ec-hw encoder liveness, pending order, flush steering, replay switchAhmet Kaan Gümüş · 3ca94e3
B4: ec-hw encoder liveness, pending order, flush steering, replay switch - encode_16 checks vk_session_alive like every other Vulkan entry point. - submit pushes the timestamp only after enc.submit returns Ok, and pops before steer, so a failed submit or steer cannot desync pending. - flush maps every picture first (popping pending), then steers, so no ? mid-loop leaves pending and ids out of step. - HwDecoder replay keeps the replay buffer until the VA replay fully succeeds; inner switches to VA only then. Output is unchanged for streams that succeed on Vulkan; the bug case is a failed replay. Verification: cargo check and clippy clean on ec-vk, ec-hw. Golden and reset tests not run here (orchestrator).
B5: ec-matroska PCM from BitDepth, refuse non-32 floatAhmet Kaan Gümüş · 74c238b
B5: ec-matroska PCM from BitDepth, refuse non-32 float A_PCM/INT/BIG always decoded as S16Be, so 24/32-bit BE tracks were read at 16 bits. A_PCM/FLOAT/IEEE ignored BitDepth, so 64-bit float decoded as f32. One pcm_codec(big, float, bits) now maps both; INT/BIG maps to S16Be, S24Be or S32Be, and float other than 32 bits is refused by name. BitDepth is read with u32::try_from instead of a truncating cast. Only BE and 64-bit float PCM tracks change output (toward the ffmpeg depth). Tests: cargo check and clippy ec-matroska only; orchestrator runs mkv tests and goldens.
B4: ec-hw poisoned() is HwReset and reports the GPU resetAhmet Kaan Gümüş · 6319c8a
B4: ec-hw poisoned() is HwReset and reports the GPU reset poisoned() built a Config error, so callers treated a dead decoder as a caller mistake and did not fall back. It now reports the reset and returns HwReset, like the other lost-session paths.
B4: ec-vk Flight::pop returns Err on empty queue, not a default MetaAhmet Kaan Gümüş · df1946c
B4: ec-vk Flight::pop returns Err on empty queue, not a default Meta
Flight::pop fell back to Meta::default() (keyframe false, id 0) when the
queue was out of step, silently emitting a wrong frame. Now it returns
Invalid("frame queue out of step"); coded() and its callers propagate it.
Bitstream output is unchanged; only the impossible empty-queue case differs.B1: ec-probe input bugs (AAC AVI sample count, Xing underflow, Ogg comment offset, window/underflow saturation, FLAC block scan bound and length clamp, WAV A/mu-law block_align 0, duration sample_rate 0 panic, TRCK first-wins)Ahmet Kaan Gümüş · ede1525
B1: ec-probe input bugs (AAC AVI sample count, Xing underflow, Ogg comment offset, window/underflow saturation, FLAC block scan bound and length clamp, WAV A/mu-law block_align 0, duration sample_rate 0 panic, TRCK first-wins) AVI AAC counted raw_blocks+1 blocks per frame; raw_blocks already holds the count, so it now uses adts_samples (1024 * raw_blocks), matching the ADTS path. AAC-in-AVI pts/dur only changes (halved). Other fixes only change behaviour on malformed or edge inputs (no panic/underflow) and are not golden-visible on valid fixtures.
B2: ec-h264-syntax range-check pic_init_qp/qs_minus26, saturating slice_qsAhmet Kaan Gümüş · fbcc820
B2: ec-h264-syntax range-check pic_init_qp/qs_minus26, saturating slice_qs pic_init_qp_minus26 must lie in [-(26+QpBdOffsetY), 25] (max QpBdOffsetY 36 for 14-bit) and pic_init_qs_minus26 in [-26, 25] (spec 7.4.2.2); out of range is Corrupt. slice_qs = pic_init_qs + slice_qs_delta now saturates instead of overflowing. Valid streams unchanged.
B2: ec-h264-syntax AnnexBIter::next loops instead of recursing on empty NAL spansAhmet Kaan Gümüş · c63953f
B2: ec-h264-syntax AnnexBIter::next loops instead of recursing on empty NAL spans Repeated 00 00 01 made one recursive call per empty NAL (~350k frames for 1 MB), overflowing the stack. Regression test added in tests/fuzz_regressions.rs. Output unchanged for all non-empty NAL units.
B3: ec-h264 length-prefixed packets: push slices without to_vec, reject trailing bytes shorter than the NAL length field as CorruptAhmet Kaan Gümüş · 8e80cd7
B3: ec-h264 length-prefixed packets: push slices without to_vec, reject trailing bytes shorter than the NAL length field as Corrupt Evidence: trailing 1-3 bytes after the last NAL unit were silently ignored. Not verified against ffmpeg for this exact case. Well-formed streams are unaffected; the to_vec removal does not change bytes.
B6: ec-ogg identify rejects Vorbis/FLAC rate 0, drop silent 48 kHz time base fallbackAhmet Kaan Gümüş · b4ff43f
B6: ec-ogg identify rejects Vorbis/FLAC rate 0, drop silent 48 kHz time base fallback Rate 0 in a Vorbis identification or FLAC STREAMINFO header is invalid; the old code kept the stream and silently timed it at 48 kHz. Now identify returns None (stream not claimed), and time_base uses the stated rate directly since Mapping can only be built from a non-zero rate. Regression: identify on a Vorbis header with rate 0 returns None. Golden: only affects streams with rate 0 (none in goldens).
tools/golden audio: opus_demo vectors, E-AC-3 dependent substreams grouped per packetAhmet Kaan Gümüş · acead95Browse files
ec-hw golden_hw: 416x240 / 418x242 (VA HEVC/AV1 encode minimum width is 384 on this GPU)Ahmet Kaan Gümüş · 787f323Browse files
ec-hw golden_hw: add VA-direct decode pass over the same 8 fixtures; zero-pad frame indices to 4 digitsAhmet Kaan Gümüş · 79e4a4fBrowse files
ec-hw golden_hw: CQP enc H.264/HEVC/AV1 on Vk+VA, i420/i420_16/rgba/bgra, encode+submit; H.264 CBR sizes; decode h264/hevc/vp9/av1 fixturesAhmet Kaan Gümüş · 74a46ceBrowse files
tools/golden video: av1/h264/h265/vp8/vp9/mpeg2/mpeg4/h263 elementary + mp4/mov/mkv/avi/dv registry decode, recursive fixture discovery, per-frame plane hashesAhmet Kaan Gümüş · 7c94faaBrowse files
tools/golden encode_video: h264 (preset x cabac x 8x8 x qp/bitrate x threads), h265 (preset x 8/10-bit x keyint x threads x ctb x HDR SEI), av1 (key/flat/pyramid3/4 x rate x tiles x natural/screen x 176x144 and odd 151x91, speeds 0..10 on natural and screen+tiles), prores (profiles x format x qscale x threads x alpha)Ahmet Kaan Gümüş · 5c78ba9Browse files
tools/golden video: av1/h264/h265/vp8/vp9/mpeg2/mpeg4 elementary + mp4/mkv registry decode, per-frame plane hashesAhmet Kaan Gümüş · 7a5eb82Browse files
tools/golden mux: per-stream packet cap so every stream gets packetsAhmet Kaan Gümüş · 44d0d6dBrowse files
tools/golden encode_video: h264 (preset x cabac x 8x8 x qp/bitrate x threads), h265 (preset x 8/10-bit x keyint x threads x ctb x HDR SEI), av1 (key/flat/pyramid3/4 x rate x tiles x natural/screen x size, speeds 0..10), prores (profiles x format x qscale x threads x alpha)Ahmet Kaan Gümüş · 373920cBrowse files
tools/golden audio: drop stderr note for absent dirs (stdout only via helpers)Ahmet Kaan Gümüş · d27c5d9Browse files
tools/golden mux: matroska/webm muxed into memory, no temp fileAhmet Kaan Gümüş · 6d35a9cBrowse files
tools/golden encode_audio: aac, mp3 cbr/vbr, opus single+multistream, vorbis, flac 0..8 x 8/16/24, alac, ac3, truehd on seeded synthetic PCMAhmet Kaan Gümüş · 3e447b6Browse files
tools/golden audio: probe decoders (aac mp3 opus vorbis flac alac amr pcm-ext), raw ac3/eac3 x3 downmix, dts, truehdAhmet Kaan Gümüş · fd19d1cBrowse files
tools/golden mux: ec-mp4 (plain, faststart, chapters), ec-matroska, webm, ec-ogg, ec-riff wav and rf64 remux hashesAhmet Kaan Gümüş · 6b48a97Browse files
tools/golden subs: ec-subs srt/vtt/ass cues, pgs, dvd (mkv/vob/mp4/idx+sub), dvb (mkv/ts) bitmaps, cc608/708 from mpeg2Ahmet Kaan Gümüş · b226b67Browse files
tools/golden demux: container demuxers and ec-probe Reader packet dump (mp4, mkv, ts, ps, ogg, avi, wav)Ahmet Kaan Gümüş · c7cb20bBrowse files
tools/golden image: still/fixture decode (pixels, rgba8, info, meta), png/gif encoders + round tripAhmet Kaan Gümüş · c12a7ceBrowse files