diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-02-15 22:47:48 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-02-17 09:59:26 +0100 |
| commit | 80430058f5eefb55147218a85225adeb6b616f4d (patch) | |
| tree | 7566946921785c596c0b4be66fbd0e9adb449ec7 /test | |
| parent | c3ce1bf707fb5308f4b96cb96ed6e8d29335a319 (diff) | |
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.
Diffstat (limited to 'test')
| -rw-r--r-- | test/ffmpeg_examiner_test.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ffmpeg_examiner_test.cc b/test/ffmpeg_examiner_test.cc index c460830fb..2c244f541 100644 --- a/test/ffmpeg_examiner_test.cc +++ b/test/ffmpeg_examiner_test.cc @@ -76,3 +76,10 @@ BOOST_AUTO_TEST_CASE (ffmpeg_examiner_vob_test) auto examiner = make_shared<FFmpegExaminer>(content); } + +/** Check that another file can be examined without error */ +BOOST_AUTO_TEST_CASE (ffmpeg_examiner_mkv_test) +{ + auto content = make_shared<FFmpegContent>(TestPaths::private_data() / "sample.mkv"); + auto examiner = make_shared<FFmpegExaminer>(content); +} |
