OSDN Git Service

better check for video track detection
authorAurelien Jacobs <aurel@gnuage.org>
Thu, 18 Oct 2007 23:52:08 +0000 (23:52 +0000)
committerAurelien Jacobs <aurel@gnuage.org>
Thu, 18 Oct 2007 23:52:08 +0000 (23:52 +0000)
Originally committed as revision 10807 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/electronicarts.c

index f093e8e..7cf15ef 100644 (file)
@@ -245,7 +245,7 @@ static int ea_read_header(AVFormatContext *s,
     if (!process_ea_header(s))
         return AVERROR(EIO);
 
-    if (ea->time_base.num && ea->time_base.den) {
+    if (ea->video_codec) {
         /* initialize the video decoder stream */
         st = av_new_stream(s, 0);
         if (!st)