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>
Sat, 19 Feb 2022 23:57:15 +0000 (00:57 +0100)
commit0a1926de0548302695d4245231d078aa39c9b03e
tree4de2d8b46306bc217378c36e70bb15e473f6d0ad
parentb044113c2ad44c30658249d2d69f65c7bba29b54
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