# HG changeset patch # User melanson # Date 1123953158 0 # Node ID 08cf92c2f7c0c896348644283d9e3835ca77e2e1 # Parent faa53103dde07b011d8b81e5ffb8d51f25764ea1 tinfoil patch: accept no widths that are no multiples of 4 diff -r faa53103dde0 -r 08cf92c2f7c0 cyuv.c --- a/cyuv.c Sat Aug 13 16:59:01 2005 +0000 +++ b/cyuv.c Sat Aug 13 17:12:38 2005 +0000 @@ -51,6 +51,9 @@ 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;