From ab89dbd43e2898c7af99387cfb15fff608b02ab5 Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Thu, 18 Oct 2007 23:52:08 +0000 Subject: [PATCH] better check for video track detection Originally committed as revision 10807 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/electronicarts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c index f093e8e19..7cf15efd8 100644 --- a/libavformat/electronicarts.c +++ b/libavformat/electronicarts.c @@ -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) -- 2.34.1