summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-10-14 17:02:15 +0200
committerCarl Hetherington <cth@carlh.net>2025-10-15 22:33:26 +0200
commit2d8d05c2e7ad67ebac2ff250670a219a891d09ca (patch)
treed26660275365ab7e3576723a0ef7fd2d3f69406b /test
parent4be14646eeb80bf51a6a86bf708446179a0416e9 (diff)
Disable use of stream IDs if there are duplicates, rather than rewriting.
It turns out that FFmpeg decoders (e.g. flv, see FFmpeg 25faaa311a74efdfdc4fed56996d7338ed807488) check stream IDs and sometimes create new streams if they see one that they didn't see before. If we change stream IDs we break this. Here we try to use stream indices in cases where the IDs are duplicated. We also account for the case where a new stream appears during examination. This wasn't covered by tests until the FFmpeg commit mentioned above, were the flv decoder creates a new stream during examination of boon_telly.mkv.
Diffstat (limited to 'test')
-rw-r--r--test/frame_rate_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/frame_rate_test.cc b/test/frame_rate_test.cc
index f38b65450..8d085478f 100644
--- a/test/frame_rate_test.cc
+++ b/test/frame_rate_test.cc
@@ -249,7 +249,7 @@ BOOST_AUTO_TEST_CASE (audio_sampling_rate_test)
std::list<int> afr = { 24, 25, 30 };
Config::instance()->set_allowed_dcp_frame_rates (afr);
- auto stream = std::make_shared<FFmpegAudioStream>("foo", 0, 0, 0, 0, 0);
+ auto stream = std::make_shared<FFmpegAudioStream>("foo", 0, 0, 0, 0, 0, 0);
content->audio = std::make_shared<AudioContent>(content.get());
content->audio->add_stream (stream);
content->_video_frame_rate = 24;