Commit 8ba49921 authored by aurel's avatar aurel

check if we found an audio track before initializing the audio stream

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10804 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5dc21287
......@@ -257,6 +257,7 @@ static int ea_read_header(AVFormatContext *s,
st->codec->time_base = ea->time_base;
}
if (ea->audio_codec) {
/* initialize the audio decoder stream */
st = av_new_stream(s, 0);
if (!st)
......@@ -274,6 +275,7 @@ static int ea_read_header(AVFormatContext *s,
ea->audio_stream_index = st->index;
ea->audio_frame_counter = 0;
}
return 1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment