[SCM] libav/experimental: tinfoil patch: accept no widths that are no multiples of 4
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 15:44:52 UTC 2013
The following commit has been merged in the experimental branch:
commit 6b892a42272eaee418b2a93069ce13c8b0eb62f4
Author: Mike Melanson <mike at multimedia.cx>
Date: Sat Aug 13 17:12:38 2005 +0000
tinfoil patch: accept no widths that are no multiples of 4
Originally committed as revision 4512 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/cyuv.c b/libavcodec/cyuv.c
index 82bc210..34de8cc 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;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list