From 824350b6e66ce7ef8a5449b60ce1abb2e4f462a5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 21 Apr 2026 22:26:25 +0200 Subject: Fix bug causing mangled audio analyses in some cases (#3155). The duplicate ID detection was broken due to using the video stream index rather than its ID for checks. --- src/lib/ffmpeg_examiner.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc index 6b60f6de3..48b354394 100644 --- a/src/lib/ffmpeg_examiner.cc +++ b/src/lib/ffmpeg_examiner.cc @@ -221,7 +221,7 @@ FFmpegExaminer::check_for_duplicate_ids() std::set stream_ids; if (_video_stream) { - stream_ids.insert(*_video_stream); + stream_ids.insert(_format_context->streams[*_video_stream]->id); } for (auto stream: _audio_streams) { -- cgit v1.2.3