diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-11-03 01:10:39 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-11-03 01:50:10 +0100 |
| commit | b3056163b9da4425aab25e3c9630a805a48d30ff (patch) | |
| tree | 12c13dd6f21588e28d8e2d98bd60299456e6337a /test | |
| parent | faf18d32cd69a293a918c33504f9ad90b906d8a1 (diff) | |
Missing check for duplicate IDs.
Without this call we don't spot duplicates that are found in the initial
scan.
Diffstat (limited to 'test')
| -rw-r--r-- | test/ffmpeg_examiner_test.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ffmpeg_examiner_test.cc b/test/ffmpeg_examiner_test.cc index c07900db8..8758c3b78 100644 --- a/test/ffmpeg_examiner_test.cc +++ b/test/ffmpeg_examiner_test.cc @@ -93,3 +93,11 @@ BOOST_AUTO_TEST_CASE (ffmpeg_examiner_video_stream_selection_test) BOOST_REQUIRE (examiner->video_frame_rate()); BOOST_CHECK_EQUAL (examiner->video_frame_rate().get(), 25); } + + +BOOST_AUTO_TEST_CASE(test_crash_during_examination_with_duplicate_ids) +{ + auto content = make_shared<FFmpegContent>(TestPaths::private_data() / "hunter.mkv"); + auto examiner = make_shared<FFmpegExaminer>(content); +} + |
