forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 3ca94e37035277bdd53c661f6bc2e381be96737a

Today

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).
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.
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.