From f37174bc1913d534913e8825f1609a637cc4b364 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 4 Jan 2012 04:02:22 +0100 Subject: [PATCH] electronicarts: Pass error through ea_read_header(). Signed-off-by: Michael Niedermayer --- libavformat/electronicarts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c index 41ed0891b9..43d1f26a8e 100644 --- a/libavformat/electronicarts.c +++ b/libavformat/electronicarts.c @@ -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) {