summaryrefslogtreecommitdiff
path: root/libavcodec/ffv1.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-09-20 21:17:37 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-09-20 21:17:37 +0000
commitc3e462a8ca8127acacd0848c2e6ea4a45e628cd7 (patch)
tree2099345f730ef8a56e97941ff963cc5dc7afc64f /libavcodec/ffv1.c
parent56f68a4112ccb909b96981d4128a3e81eec212e2 (diff)
downloadffmpeg-c3e462a8ca8127acacd0848c2e6ea4a45e628cd7.tar.gz
set supported pixel formats for a few encoders (fixes crashes with grayscale)
Originally committed as revision 6303 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ffv1.c')
-rw-r--r--libavcodec/ffv1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index c987d84f6f..443950cc00 100644
--- a/libavcodec/ffv1.c
+++ b/libavcodec/ffv1.c
@@ -1027,5 +1027,6 @@ AVCodec ffv1_encoder = {
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