[FFmpeg-cvslog] electronicarts: Pass error through ea_read_header().
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Wed Jan 4 09:30:16 CET 2012
On 4 Jan 2012, at 05:04, git at videolan.org (Michael Niedermayer) wrote:
> ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jan 4 04:02:22 2012 +0100| [f37174bc1913d534913e8825f1609a637cc4b364] | committer: Michael Niedermayer
>
> electronicarts: Pass error through ea_read_header().
>
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
>
>> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f37174bc1913d534913e8825f1609a637cc4b364
> ---
>
> libavformat/electronicarts.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c
> index 41ed089..43d1f26 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);
That actually does not pass the error through, it always converts it to EIO.
Should be slightly better to really pass the error on unmodified.
More information about the ffmpeg-cvslog
mailing list