Commit 2e607720 authored by melanson's avatar melanson

tinfoil patch: accept no widths that are no multiples of 4


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4512 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 69352f9c
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment