electronicarts: Pass error through ea_read_header().
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 4 Jan 2012 03:02:22 +0000 (04:02 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 4 Jan 2012 03:02:22 +0000 (04:02 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/electronicarts.c

index 41ed089..43d1f26 100644 (file)
@@ -408,7 +408,7 @@ static int ea_read_header(AVFormatContext *s,
     EaDemuxContext *ea = s->priv_data;
     AVStream *st;
 
-    if (!process_ea_header(s))
+    if (process_ea_header(s)<=0)
         return AVERROR(EIO);
 
     if (ea->video_codec) {