From c3e462a8ca8127acacd0848c2e6ea4a45e628cd7 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 20 Sep 2006 21:17:37 +0000 Subject: set supported pixel formats for a few encoders (fixes crashes with grayscale) Originally committed as revision 6303 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/wmv2.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/wmv2.c') diff --git a/libavcodec/wmv2.c b/libavcodec/wmv2.c index 3f405af4f9..b10cce60c9 100644 --- a/libavcodec/wmv2.c +++ b/libavcodec/wmv2.c @@ -848,5 +848,6 @@ AVCodec wmv2_encoder = { wmv2_encode_init, MPV_encode_picture, MPV_encode_end, + .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUVJ420P, -1}, }; #endif -- cgit v1.2.3