summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-11-08 19:57:04 +0100
committerCarl Hetherington <cth@carlh.net>2024-11-08 19:57:04 +0100
commit111acef9b225731c99274d82cdd374acc04ca252 (patch)
treef60e5fe927391d00b2217a9452261e3f7e5d76e3
parent153153f2b91297ed463d0a0a85b74bc38f660003 (diff)
I think carry_on_audio should also be set false if audio_packet() returns false.
-rw-r--r--src/lib/ffmpeg_examiner.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc
index 1aeda6a2f..5353ddd2b 100644
--- a/src/lib/ffmpeg_examiner.cc
+++ b/src/lib/ffmpeg_examiner.cc
@@ -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);