summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <[email protected]>2015-03-07 14:30:34 +0100
committerMichael Niedermayer <[email protected]>2015-06-10 02:13:09 +0200
commit5f92a0d1e94c7cde4a6dec7bb11abf200a59f3ca (patch)
tree43a13ff4dfca1f45a9bf793748955bc1a19c4fc9
parent3bfaadfadaba9a1035f87d276d3a0ab64d571cb5 (diff)
avcodec/utils: Align YUV411 by as much as the other YUV variants
Fixes out of array accesses Fixes: ffmpeg_mjpeg_crash2.avi Found-by: Thomas Lindroth <[email protected]> Tested-by: Thomas Lindroth <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit e3201c38d53d2b8b24d0bc95d726b2cb1752dc12) Signed-off-by: Michael Niedermayer <[email protected]>
-rw-r--r--libavcodec/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 56258ebd22..f6d4477769 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -275,7 +275,7 @@ void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height,
case AV_PIX_FMT_YUVJ411P:
case AV_PIX_FMT_UYYVYY411:
w_align = 32;
- h_align = 8;
+ h_align = 16 * 2;
break;
case AV_PIX_FMT_YUV410P:
if (s->codec_id == AV_CODEC_ID_SVQ1) {