[FFmpeg-cvslog] r13488 - trunk/libavformat/yuv4mpeg.c

Michael Niedermayer michaelni
Thu May 29 17:46:18 CEST 2008


On Thu, May 29, 2008 at 05:10:05PM +0200, Reimar D?ffinger wrote:
> 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.

nah, not really, try
grep -A2 new_stream libavformat/*.c | grep return | grep -v ENOMEM
(hint, yes this is a terribly inconsistancy far worse than indices or
missorted list ... yes iam  trying to attract diego to fix it :))) 

anyway ive fixed the one i caused in yuv4mpeg

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who are too smart to engage in politics are punished by being
governed by those who are dumber. -- Plato 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20080529/36274f22/attachment.pgp>



More information about the ffmpeg-cvslog mailing list