From 1dffa893a0f7042bd50500246ac94d70efa23bdc Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 13 Feb 2022 00:29:58 +0100 Subject: [PATCH] Relax error handling when examining FFmpeg files (#2187). --- src/lib/ffmpeg_examiner.cc | 9 +++------ test/ffmpeg_examiner_test.cc | 9 +++++++++ 2 files changed, 12 insertions(+), 6 deletions(-) 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); +} + -- 2.30.2