[FFmpeg-devel] [PATCH] Implement avfilter_add_colorspaces()

Stefano Sabatini stefano.sabatini-lala
Fri Jan 1 13:32:32 CET 2010


On date Friday 2010-01-01 01:35:01 +0100, Michael Niedermayer encoded:
> On Thu, Dec 31, 2009 at 06:38:10PM +0100, Stefano Sabatini wrote:
[...]
> > Index: libavfilter-soc/ffmpeg/libavfilter/formats.c
> > ===================================================================
> > --- libavfilter-soc.orig/ffmpeg/libavfilter/formats.c	2009-12-30 01:24:53.000000000 +0100
> > +++ libavfilter-soc/ffmpeg/libavfilter/formats.c	2009-12-31 18:34:57.000000000 +0100
> > @@ -85,6 +85,13 @@
> >      return formats;
> >  }
> >  
> > +void avfilter_add_colorspace(AVFilterFormats *formats, enum PixelFormat pix_fmt)
> > +{
> > +    formats->formats = av_realloc(formats->formats,
> > +                                  sizeof(formats->formats) * ++formats->format_count);
> > +    formats->formats[formats->format_count-1] = pix_fmt;
> 
> ENOMEM checking missing

Updated.
-- 
FFmpeg = Fostering Faboulous Mournful Puristic Eager Gadget
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implement-add-colorspace.patch
Type: text/x-diff
Size: 1554 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100101/8fb6c327/attachment.patch>



More information about the ffmpeg-devel mailing list