[FFmpeg-cvslog] r17019 - trunk/libavcodec/gif.c

michael subversion
Fri Feb 6 14:04:39 CET 2009


Author: michael
Date: Fri Feb  6 14:04:39 2009
New Revision: 17019

Log:
Fix gifs list of supported input pix_fmts, this makes it work with swscale
it also allows encoding gif with a 4bit palette and with a graycale one as
sideeffect.

Modified:
   trunk/libavcodec/gif.c

Modified: trunk/libavcodec/gif.c
==============================================================================
--- trunk/libavcodec/gif.c	Fri Feb  6 13:59:50 2009	(r17018)
+++ trunk/libavcodec/gif.c	Fri Feb  6 14:04:39 2009	(r17019)
@@ -283,6 +283,6 @@ AVCodec gif_encoder = {
     gif_encode_init,
     gif_encode_frame,
     NULL, //encode_end,
-    .pix_fmts= (enum PixelFormat[]){PIX_FMT_PAL8, PIX_FMT_NONE},
+    .pix_fmts= (enum PixelFormat[]){PIX_FMT_RGB8, PIX_FMT_BGR8, PIX_FMT_RGB4_BYTE, PIX_FMT_BGR4_BYTE, PIX_FMT_GRAY8, PIX_FMT_PAL8, PIX_FMT_NONE},
     .long_name= NULL_IF_CONFIG_SMALL("GIF (Graphics Interchange Format)"),
 };




More information about the ffmpeg-cvslog mailing list