[FFmpeg-cvslog] r10804 - trunk/libavformat/electronicarts.c

aurel subversion
Fri Oct 19 01:42:55 CEST 2007


Author: aurel
Date: Fri Oct 19 01:42:54 2007
New Revision: 10804

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

Modified:
   trunk/libavformat/electronicarts.c

Modified: trunk/libavformat/electronicarts.c
==============================================================================
--- trunk/libavformat/electronicarts.c	(original)
+++ trunk/libavformat/electronicarts.c	Fri Oct 19 01:42:54 2007
@@ -257,6 +257,7 @@ static int ea_read_header(AVFormatContex
         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(AVFormatContex
 
     ea->audio_stream_index = st->index;
     ea->audio_frame_counter = 0;
+    }
 
     return 1;
 }




More information about the ffmpeg-cvslog mailing list