[FFmpeg-devel] [PATCH] Simplify swscale.c:reset_ptr()

Stefano Sabatini stefano.sabatini-lala
Sat Jan 16 02:39:30 CET 2010


On date Monday 2009-11-02 12:48:39 +0100, Michael Niedermayer encoded:
> On Mon, Nov 02, 2009 at 12:58:26AM +0100, Stefano Sabatini wrote:
> > Hi, as in subject.
> > -- 
> > FFmpeg = Frenzy & Fundamentalist Moronic Pacific Energized Genius
> 
> >  swscale.c |    7 +------
> >  1 file changed, 1 insertion(+), 6 deletions(-)
> > 2346b71e853824ef21a24a0958d32e774bdeb355  simplify-sws-reset-ptr.patch
> > Index: libswscale/swscale.c
> > ===================================================================
> > --- libswscale/swscale.c	(revision 29810)
> > +++ libswscale/swscale.c	(working copy)
> > @@ -3068,12 +3068,7 @@
> >          src[3]=NULL;
> >      if(!isPlanarYUV(format)) {
> >          src[3]=src[2]=NULL;
> > -        if(   format != PIX_FMT_PAL8
> > -           && format != PIX_FMT_RGB8
> > -           && format != PIX_FMT_BGR8
> > -           && format != PIX_FMT_RGB4_BYTE
> > -           && format != PIX_FMT_BGR4_BYTE
> > -          )
> > +        if (usePal(format))
> 
> you have not tested this code

Updated, regards.
-- 
FFmpeg = Faboulous and Funny Martial Powerful Enlightened Gnome
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simplify-sws-reset-ptr.patch
Type: text/x-diff
Size: 566 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100116/16213042/attachment.patch>



More information about the ffmpeg-devel mailing list