ffmpeg-rockchip/fftools
James Almer e86e2d5921 fftools/ffmpeg_dec: abort if avcodec_send_packet() returns EAGAIN
As the comment in the code mentions, EAGAIN is not an expected value here
because we call avcodec_receive_frame() until all frames have been returned.
avcodec_send_packet() returning EAGAIN means a packet is still buffered, which
hints that the underlying decoder is buggy and not fetching packets as it
should.

An example of this behavior was in the libdav1d wrapper before f209614290,
where feeding it split frames (or individual OBUs) would result in the CLI
eventually printing the confusing "Error submitting packet to decoder: Resource
temporarily unavailable" error message, and just keep going until EOF without
returning new frames.

Signed-off-by: James Almer <jamrial@gmail.com>
2023-05-26 19:47:54 -03:00
..
cmdutils.c fftools/cmdutils: constify the argument of get_rotation() 2023-05-22 17:10:44 +02:00
cmdutils.h fftools/cmdutils: constify the argument of get_rotation() 2023-05-22 17:10:44 +02:00
ffmpeg.c fftools/ffmpeg: move decoding code to ffmpeg_dec 2023-05-22 17:10:44 +02:00
ffmpeg.h fftools/ffmpeg: move decoding code to ffmpeg_dec 2023-05-22 17:10:44 +02:00
ffmpeg_dec.c fftools/ffmpeg_dec: abort if avcodec_send_packet() returns EAGAIN 2023-05-26 19:47:54 -03:00
ffmpeg_demux.c fftools/ffmpeg: rework handling -max_error_rate 2023-05-22 17:10:44 +02:00
ffmpeg_enc.c fftools/ffmpeg_enc: stop configuring filter inputs from encoder flush 2023-05-08 10:38:59 +02:00
ffmpeg_filter.c fftools/ffmpeg: eliminate InputStream.got_output 2023-05-22 17:10:44 +02:00
ffmpeg_hw.c fftools/ffmpeg: supply hw_device_ctx to filters before initializing them 2023-03-24 10:23:52 +01:00
ffmpeg_mux.c fftools/ffmpeg: replace print_error() by more meaningful messages 2023-05-15 13:32:01 +02:00
ffmpeg_mux.h fftools/ffmpeg_mux: make copy_initial_nonkeyframes private to muxing code 2023-04-17 12:01:40 +02:00
ffmpeg_mux_init.c fftools/ffmpeg: return error codes from ist_*_add() 2023-05-22 17:10:44 +02:00
ffmpeg_opt.c fftools/ffmpeg: add ability to set a input burst time before readrate is enforced 2023-05-07 15:48:15 +02:00
ffplay.c fftools/ffplay: stop using AVFrame.pkt_pos 2023-03-20 10:42:09 +01:00
ffprobe.c fftools/ffprobe: print exported stream AVOptions 2023-05-08 11:04:37 -03: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 fftools/fopen_utf8: support long paths on Windows for fftools 2022-06-19 01:38:23 +03:00
Makefile fftools/ffmpeg: move opening decoders to a new file 2023-04-17 12:01:40 +02:00
objpool.c fftools/objpool: Don't use return with expression when returning void 2022-07-23 18:58:35 +02:00
objpool.h fftools: add an object pool 2022-07-23 11:53:19 +02:00
opt_common.c fftools/opt_common: stop printing deprecated AV_CODEC_CAP_SUBFRAMES 2023-05-15 10:24:54 +02:00
opt_common.h fftools/cmdutils: split common option handlers into their own file 2022-03-22 18:49:43 +01:00
sync_queue.c fftools/sync_queue: update audio frame duration when re-chunking 2023-04-19 21:12:03 +02:00
sync_queue.h fftools/sync_queue: allow requesting a specific number of audio samples 2023-04-09 15:47:45 +02:00
thread_queue.c fftools: add a multistream thread-safe queue 2022-07-23 11:53:19 +02:00
thread_queue.h fftools: add a multistream thread-safe queue 2022-07-23 11:53:19 +02:00