Files
FFmpeg/libavcodec/vvc
Daniel Campos Ramos 502046abcf avcodec/vvc: defer output errors until the current frame is submitted
An allocation failure in av_frame_ref() during output aborts
frame_start() before the current picture is submitted. In low delay mode
this loses the current picture as well as the output picture. With
delayed frames the next packet copies the preceding frame context's DPB,
restoring the failed picture's output flag while still losing the
current picture.

Retain the output error in the frame context and report it when that
frame is collected. This preserves the updated DPB and decodes the
current picture, while dropping only the picture whose export failed.

Reproduced on unmodified master by failing the buffer-reference
allocation inside ff_vvc_output_frame(), then comparing the remaining
picture hashes against a successful decode, with one and four threads
and both delay modes.

Fixes: #25379
Signed-off-by: Daniel Campos Ramos <Capitain_Jack@yahoo.com>
Assisted-by: gpt-6-astra via Codex
2026-10-31 09:02:36 +00:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…