I think carry_on_audio should also be set false if audio_packet() returns false.
authorCarl Hetherington <cth@carlh.net>
Fri, 8 Nov 2024 18:57:04 +0000 (19:57 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 8 Nov 2024 18:57:04 +0000 (19:57 +0100)
src/lib/ffmpeg_examiner.cc

index 1aeda6a2f38711a9690664a0330911a040a7eab6..5353ddd2bc79915b16e845e1bcda3e000fcc12af 100644 (file)
@@ -159,9 +159,7 @@ FFmpegExaminer::FFmpegExaminer (shared_ptr<const FFmpegContent> c, shared_ptr<Jo
                }
 
                if (audio_stream_index) {
-                       if (audio_packet(context, _audio_streams[*audio_stream_index], packet)) {
-                               carry_on_audio[*audio_stream_index] = true;
-                       }
+                       carry_on_audio[*audio_stream_index] = audio_packet(context, _audio_streams[*audio_stream_index], packet);
                }
 
                av_packet_free (&packet);