summaryrefslogtreecommitdiff
path: root/libavcodec/h261.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/h261.c
parent56f68a4112ccb909b96981d4128a3e81eec212e2 (diff)
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/h261.c')
-rw-r--r--libavcodec/h261.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h261.c b/libavcodec/h261.c
index 20c9388cb4..337d479cbd 100644
--- a/libavcodec/h261.c
+++ b/libavcodec/h261.c
@@ -1026,6 +1026,7 @@ AVCodec h261_encoder = {
MPV_encode_init,
MPV_encode_picture,
MPV_encode_end,
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
};
#endif