From 9153d2a9864a41dbbf78c005498785cd0f75c21d Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 31 Aug 2016 15:59:05 -0400 Subject: [PATCH] when the audio stream is not aac, don't save it. --- src/zm_videostore.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zm_videostore.cpp b/src/zm_videostore.cpp index 8444a0321..450115181 100644 --- a/src/zm_videostore.cpp +++ b/src/zm_videostore.cpp @@ -156,10 +156,11 @@ VideoStore::VideoStore(const char *filename_in, const char *format_in, if (input_audio_stream) { - if ( audio_stream->codec->codec_id != AV_CODEC_ID_AAC ) { + if ( input_audio_stream->codec->codec_id != AV_CODEC_ID_AAC ) { Warning("Can't transcode to AAC at this time"); audio_stream = NULL; } else { + Debug(3, "Got something other than AAC (%d)", input_audio_stream->codec->codec_id ); audio_stream = avformat_new_stream(oc, (AVCodec *)input_audio_stream->codec->codec); if (!audio_stream) {