# HG changeset patch # User aurel # Date 1192750974 0 # Node ID ad769d06b84cc207e35ce4531a79a48b9f1ead95 # Parent 3ffeea972e03e7468d76a6deafe172f86bc915ee check if we found an audio track before initializing the audio stream diff -r 3ffeea972e03 -r ad769d06b84c electronicarts.c --- a/electronicarts.c Thu Oct 18 23:40:03 2007 +0000 +++ b/electronicarts.c Thu Oct 18 23:42:54 2007 +0000 @@ -257,6 +257,7 @@ 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 @@ ea->audio_stream_index = st->index; ea->audio_frame_counter = 0; + } return 1; }