when the audio stream is not aac, don't save it.

This commit is contained in:
Isaac Connor 2016-08-31 15:59:05 -04:00
parent a1941c5a65
commit 9153d2a986
1 changed files with 2 additions and 1 deletions

View File

@ -156,10 +156,11 @@ VideoStore::VideoStore(const char *filename_in, const char *format_in,
if (input_audio_stream) { 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"); Warning("Can't transcode to AAC at this time");
audio_stream = NULL; audio_stream = NULL;
} else { } 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); audio_stream = avformat_new_stream(oc, (AVCodec *)input_audio_stream->codec->codec);
if (!audio_stream) { if (!audio_stream) {