diff options
author | Mike Melanson <mike@multimedia.cx> | 2005-08-13 17:12:38 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2005-08-13 17:12:38 +0000 |
commit | 6b892a42272eaee418b2a93069ce13c8b0eb62f4 (patch) | |
tree | df4cc0cf153e57852a775e3d3983f3c389230c9a /libavcodec | |
parent | 3c8c94b403977eb7c65a07081b55cc9bc5005ced (diff) | |
download | ffmpeg-6b892a42272eaee418b2a93069ce13c8b0eb62f4.tar.gz |
tinfoil patch: accept no widths that are no multiples of 4
Originally committed as revision 4512 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/cyuv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/cyuv.c b/libavcodec/cyuv.c index 82bc21005c..34de8cc044 100644 --- a/libavcodec/cyuv.c +++ b/libavcodec/cyuv.c @@ -51,6 +51,9 @@ static int cyuv_decode_init(AVCodecContext *avctx) s->avctx = avctx; s->width = avctx->width; + /* width needs to be divisible by 4 for this codec to work */ + if (s->width & 0x3) + return -1; s->height = avctx->height; avctx->pix_fmt = PIX_FMT_YUV411P; avctx->has_b_frames = 0; |