[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec cyuv.c,1.9,1.10

Mike Melanson CVS melanson
Sat Aug 13 19:12:40 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv16933/libavcodec

Modified Files:
	cyuv.c 
Log Message:
tinfoil patch: accept no widths that are no multiples of 4


Index: cyuv.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/cyuv.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- cyuv.c	21 May 2004 14:37:16 -0000	1.9
+++ cyuv.c	13 Aug 2005 17:12:38 -0000	1.10
@@ -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;





More information about the ffmpeg-cvslog mailing list