Mercurial > libavcodec.hg
changeset 3740:0082fb8c77b6 libavcodec
set supported pixel formats for a few encoders (fixes crashes with grayscale)
author | michael |
---|---|
date | Wed, 20 Sep 2006 21:17:37 +0000 |
parents | 57ff26561bd7 |
children | b5436ea83910 |
files | asv1.c ffv1.c h261.c wmv2.c |
diffstat | 4 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/asv1.c Wed Sep 20 08:39:56 2006 +0000 +++ b/asv1.c Wed Sep 20 21:17:37 2006 +0000 @@ -632,6 +632,7 @@ encode_init, encode_frame, //encode_end, + .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1}, }; AVCodec asv2_encoder = { @@ -642,6 +643,7 @@ encode_init, encode_frame, //encode_end, + .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1}, }; #endif //CONFIG_ENCODERS
--- a/ffv1.c Wed Sep 20 08:39:56 2006 +0000 +++ b/ffv1.c Wed Sep 20 21:17:37 2006 +0000 @@ -1027,5 +1027,6 @@ encode_init, encode_frame, common_end, + .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV444P, PIX_FMT_YUV422P, PIX_FMT_YUV411P, PIX_FMT_YUV410P, PIX_FMT_RGBA32, -1}, }; #endif