[FFmpeg-cvslog] r13488 - trunk/libavformat/yuv4mpeg.c
Reimar Döffinger
Reimar.Doeffinger
Thu May 29 17:10:05 CEST 2008
Hello,
On Wed, May 28, 2008 at 03:57:19AM +0200, michael wrote:
> Author: michael
> Date: Wed May 28 03:57:19 2008
> New Revision: 13488
>
> Log:
> Null pointer check / CID26.
>
>
> Modified:
> trunk/libavformat/yuv4mpeg.c
>
> Modified: trunk/libavformat/yuv4mpeg.c
> ==============================================================================
> --- trunk/libavformat/yuv4mpeg.c (original)
> +++ trunk/libavformat/yuv4mpeg.c Wed May 28 03:57:19 2008
> @@ -322,6 +322,8 @@ static int yuv4_read_header(AVFormatCont
> }
>
> st = av_new_stream(s, 0);
> + if(!st)
> + return -1;
Many (I think almost all) demuxers return AVERROR(ENOMEM) in this case.
I do not really have a preference any way, but IMO it should at least be
consistent...
Greetings,
Reimar D?ffinger
More information about the ffmpeg-cvslog
mailing list