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

Michael Niedermayer michaelni
Mon Nov 2 12:48:39 CET 2009


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

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

Frequently ignored awnser#1 FFmpeg bugs should be sent to our bugtracker. User
questions about the command line tools should be sent to the ffmpeg-user ML.
And questions about how to use libav* should be sent to the libav-user ML.
-------------- 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/20091102/e0a14fb5/attachment.pgp>



More information about the ffmpeg-devel mailing list