aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-01-03 14:50:49 +0100
committerAnton Khirnov <anton@khirnov.net>2014-01-06 08:20:56 +0100
commit8058284ce09030b47512746d726fb2ad3ae8a20f (patch)
tree739f36f3f532a5a9650b0c693d128321841dbf08
parent2f97094608cfd2665660f7a26a3291559b186752 (diff)
downloadffmpeg-8058284ce09030b47512746d726fb2ad3ae8a20f.tar.gz
lavc: add 422/444 YUV with alpha to align_dimensions()
Aligns frame dimensions to 16, which fixes potential invalid writes.
-rw-r--r--libavcodec/utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index d744bbacd2..1c56d79772 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -210,10 +210,14 @@ void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height,
case AV_PIX_FMT_YUV422P9BE:
case AV_PIX_FMT_YUV422P10LE:
case AV_PIX_FMT_YUV422P10BE:
+ case AV_PIX_FMT_YUVA422P10LE:
+ case AV_PIX_FMT_YUVA422P10BE:
case AV_PIX_FMT_YUV444P9LE:
case AV_PIX_FMT_YUV444P9BE:
case AV_PIX_FMT_YUV444P10LE:
case AV_PIX_FMT_YUV444P10BE:
+ case AV_PIX_FMT_YUVA444P10LE:
+ case AV_PIX_FMT_YUVA444P10BE:
case AV_PIX_FMT_GBRP9LE:
case AV_PIX_FMT_GBRP9BE:
case AV_PIX_FMT_GBRP10LE: