Try to handle EAGAIN from avcodec_send_packet() properly.
authorCarl Hetherington <cth@carlh.net>
Tue, 15 Feb 2022 21:47:48 +0000 (22:47 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 17 Feb 2022 08:59:26 +0000 (09:59 +0100)
commit80430058f5eefb55147218a85225adeb6b616f4d
tree7566946921785c596c0b4be66fbd0e9adb449ec7
parentc3ce1bf707fb5308f4b96cb96ed6e8d29335a319
Try to handle EAGAIN from avcodec_send_packet() properly.

The docs say on EAGAIN we should call avcodec_receive_frame()
and then re-send the same packet again.  This should do that.

This is a fix for errors trigged by the accompanying test.
src/lib/ffmpeg_decoder.cc
src/lib/ffmpeg_examiner.cc
test/ffmpeg_examiner_test.cc