From: Carl Hetherington Date: Sat, 12 Feb 2022 23:29:58 +0000 (+0100) Subject: Relax error handling when examining FFmpeg files (#2187). X-Git-Tag: v2.16.1~5 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=1dffa893a0f7042bd50500246ac94d70efa23bdc;hp=d2929a5dea6639f1896fb69929a4913e3d4f4fb5 Relax error handling when examining FFmpeg files (#2187). --- diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc index 5e53f0974..3c6d185f4 100644 --- a/src/lib/ffmpeg_examiner.cc +++ b/src/lib/ffmpeg_examiner.cc @@ -264,12 +264,9 @@ FFmpegExaminer::audio_packet (AVCodecContext* context, shared_ptraudio_streams()[1]->frame_rate(), 48000); BOOST_CHECK_EQUAL (examiner->audio_streams()[1]->channels(), 5); } + + +/** Check that a file can be examined without error */ +BOOST_AUTO_TEST_CASE (ffmpeg_examiner_vob_test) +{ + auto content = make_shared(TestPaths::private_data() / "bad.vob"); + auto examiner = make_shared(content); +} +