Skip to content
Snippets Groups Projects
Commit ab89dbd4 authored by Aurelien Jacobs's avatar Aurelien Jacobs
Browse files

better check for video track detection

Originally committed as revision 10807 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 018d0ff9
No related branches found
No related tags found
No related merge requests found
...@@ -245,7 +245,7 @@ static int ea_read_header(AVFormatContext *s, ...@@ -245,7 +245,7 @@ static int ea_read_header(AVFormatContext *s,
if (!process_ea_header(s)) if (!process_ea_header(s))
return AVERROR(EIO); return AVERROR(EIO);
if (ea->time_base.num && ea->time_base.den) { if (ea->video_codec) {
/* initialize the video decoder stream */ /* initialize the video decoder stream */
st = av_new_stream(s, 0); st = av_new_stream(s, 0);
if (!st) if (!st)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment