changeset 2647:48526bd11471 libavformat

better check for video track detection
author aurel
date Thu, 18 Oct 2007 23:52:08 +0000
parents f85d4b3d2d7c
children 5936e5b0d001
files electronicarts.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/electronicarts.c	Thu Oct 18 23:50:52 2007 +0000
+++ b/electronicarts.c	Thu Oct 18 23:52:08 2007 +0000
@@ -245,7 +245,7 @@
     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)