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

Michael Niedermayer michaelni
Sat Jan 16 11:14:22 CET 2010


On Sat, Jan 16, 2010 at 02:39:30AM +0100, Stefano Sabatini wrote:
> 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

>  swscale.c |    8 ++------
>  1 file changed, 2 insertions(+), 6 deletions(-)
> aea27fdf56f54e9bc187ea2fcb8c764933a1b9d9  simplify-sws-reset-ptr.patch

ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I know you won't believe me, but the highest form of Human Excellence is
to question oneself and others. -- Socrates
-------------- 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-devel/attachments/20100116/38bb0019/attachment.pgp>



More information about the ffmpeg-devel mailing list