diff options
author | James Almer <jamrial@gmail.com> | 2023-05-22 19:13:25 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-05-26 19:47:54 -0300 |
commit | e86e2d5921a30b582619466f14f5274b1f986729 (patch) | |
tree | faa5123de0ab5ebc3515b08aacacf841396857ae /libavformat/ty.c | |
parent | 5a13b133f8effe2a2bac07b17f591d8ca7f6c1de (diff) | |
download | ffmpeg-e86e2d5921a30b582619466f14f5274b1f986729.tar.gz |
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>
Diffstat (limited to 'libavformat/ty.c')
0 files changed, 0 insertions, 0 deletions