FFmpeg/fftools
Andreas Rheinhardt b18aaf209f fftools/ffmpeg_dec: Always receive frames from decoder
Up until now if avcodec_send_packet() returned an error,
no attempt to receive a frame from the decoder would be made.
Instead the decoder was presumed to be drained, so that more
packets could be sent to it. Yet this need not be so:
It can happen that a packet would decode to multiple frames
and that decoding the first of these (the one that is decoded
during the avcodec_send_packet() call) returns an error,
in which case the decoder is not yet ready to receive more
input as the remaining parts of the packet have not been decoded
yet. In this case, an AERROR_BUG is triggered.

This happens in ticket #11553 with VP9 (which uses a BSF
to split VP9 superframes and is therefore affected by this).

Fix this by always calling avcodec_receive_frame() unless
xerror is set.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2025-05-15 01:23:41 +02:00
..
textformat fftools/textformat/avtextformat: Remove unused variable 2025-04-17 01:49:04 +02:00
Makefile fftools/ffprobe: Change to use textformat api 2025-04-11 03:06:47 +02:00
cmdutils.c fftools/cmdutils: fix error message for "ffmpeg -init_hw_device list" 2025-04-03 06:29:12 +08:00
cmdutils.h all: Fix doxy comments wrongly designated as trailing ///< 2025-03-12 17:00:24 +01:00
ffmpeg.c fftools/ffmpeg: move elapsed time counter to the end of the status line 2025-05-11 18:41:55 +02:00
ffmpeg.h ffmpeg: add per-stream input option drop_changed 2025-03-24 16:18:17 +05:30
ffmpeg_dec.c fftools/ffmpeg_dec: Always receive frames from decoder 2025-05-15 01:23:41 +02:00
ffmpeg_demux.c ffmpeg: add per-stream input option drop_changed 2025-03-24 16:18:17 +05:30
ffmpeg_enc.c fftools/ffmpeg_mux: move OutputStream.enc_ctx to Encoder 2024-09-30 09:29:18 +02:00
ffmpeg_filter.c ffmpeg-filter: check for initialized graph 2025-03-25 01:06:03 +05:30
ffmpeg_hw.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
ffmpeg_mux.c fftools/ffmpeg_mux: move OutputStream.enc_ctx to Encoder 2024-09-30 09:29:18 +02:00
ffmpeg_mux.h fftools/ffmpeg_filter: stop accessing OutputStream.[max_]frame_rate 2024-09-26 18:29:40 +02:00
ffmpeg_mux_init.c fftools/ffmpeg: use an int for nb_threads 2025-02-17 09:40:13 -03:00
ffmpeg_opt.c ffmpeg: add per-stream input option drop_changed 2025-03-24 16:18:17 +05:30
ffmpeg_sched.c ffmpeg_sched: return better error code 2024-12-26 15:45:00 +05:30
ffmpeg_sched.h fftools/ffmpeg_sched: allow decoders to have multiple outputs 2024-09-23 17:15:02 +02:00
ffmpeg_utils.h fftools/ffmpeg: propagate decoded_side_data from decoded streams to the filterchain 2025-01-25 21:56:49 -03:00
ffplay.c fftools/ffplay: fix crash when vk renderer is null 2024-11-06 16:34:02 +08:00
ffplay_renderer.c fftools/ffplay_renderer: Fix a typo 2024-11-20 19:17:37 +08:00
ffplay_renderer.h fftools/ffplay: add hwaccel decoding support 2023-11-15 01:20:11 +08:00
ffprobe.c Remove libpostproc 2025-05-07 15:35:47 +02:00
fftools.manifest fftools: add DPI awareness manifest 2022-08-13 14:42:52 +02:00
fftoolsres.rc fftools: add DPI awareness manifest 2022-08-13 14:42:52 +02:00
fopen_utf8.h avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
opt_common.c Remove libpostproc 2025-05-07 15:35:47 +02:00
opt_common.h fftools/cmdutils: hide some information listing options from basic help 2024-01-20 10:37:32 +01:00
sync_queue.c fftools/sync_queue: switch from AVFifo+ObjPool to AVContainerFifo 2024-12-15 14:05:34 +01:00
sync_queue.h fftools/sync_queue: add debug logging 2023-05-28 10:47:59 +02:00
thread_queue.c fftools/thread_queue: switch from AVFifo+ObjPool to AVContainerFifo 2024-12-15 14:05:34 +01:00
thread_queue.h fftools/thread_queue: switch from AVFifo+ObjPool to AVContainerFifo 2024-12-15 14:05:34 +01:00