projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c8c94b
)
tinfoil patch: accept no widths that are no multiples of 4
author
Mike Melanson
<mike@multimedia.cx>
Sat, 13 Aug 2005 17:12:38 +0000
(17:12 +0000)
committer
Mike Melanson
<mike@multimedia.cx>
Sat, 13 Aug 2005 17:12:38 +0000
(17:12 +0000)
Originally committed as revision 4512 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/cyuv.c
patch
|
blob
|
history
diff --git
a/libavcodec/cyuv.c
b/libavcodec/cyuv.c
index
82bc210
..
34de8cc
100644
(file)
--- 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;