[FFmpeg-cvslog] lavc: add 422/444 YUV with alpha to align_dimensions()
Anton Khirnov
git at videolan.org
Mon Jan 6 15:24:26 CET 2014
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Jan 3 14:50:49 2014 +0100| [8058284ce09030b47512746d726fb2ad3ae8a20f] | committer: Anton Khirnov
lavc: add 422/444 YUV with alpha to align_dimensions()
Aligns frame dimensions to 16, which fixes potential invalid writes.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8058284ce09030b47512746d726fb2ad3ae8a20f
---
libavcodec/utils.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index d744bba..1c56d79 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:
More information about the ffmpeg-cvslog
mailing list