diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-02-06 13:04:39 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-02-06 13:04:39 +0000 |
commit | 271e6ddd4ac6f5d8e7a0bcf2fd72f61a3c005ef5 (patch) | |
tree | 4f651da786ae7ac66438fbd644d45e2bf966c59d | |
parent | 6337178b4f5c80e4dde5fda2b9a278ee1368b93a (diff) | |
download | ffmpeg-271e6ddd4ac6f5d8e7a0bcf2fd72f61a3c005ef5.tar.gz |
Fix list of input pix_fmts supported by GIF. This makes it work with swscale.
It also allows encoding GIF with a 4-bit palette and with a graycale one as a
side effect.
Originally committed as revision 17019 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/gif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/gif.c b/libavcodec/gif.c index fe038a6934..08d50deedc 100644 --- a/libavcodec/gif.c +++ b/libavcodec/gif.c @@ -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)"), }; |