mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-11-06 13:28:17 +00:00
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