Browse Source

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

Originally committed as revision 4512 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Mike Melanson 20 years ago
parent
commit
6b892a4227
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/cyuv.c

+ 3
- 0
libavcodec/cyuv.c View File

@@ -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;


Loading…
Cancel
Save