aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-24 23:33:40 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-24 23:33:40 +0200
commit3fe9e7be4c70c8fccdcd56fd19276e668cfb7de8 (patch)
tree99e5a4c76e9e1999786356fe9bd2536314421d2d /libavcodec/utils.c
parent511398031cc9991a0f4eb9dcaca5b7d9ca9c636d (diff)
downloadffmpeg-3fe9e7be4c70c8fccdcd56fd19276e668cfb7de8.tar.gz
avcodec/utils: add GBRP16 to avcodec_align_dimensions2()
Fixes Ticket3869 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 985884f551..a7bed06432 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -356,6 +356,8 @@ void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height,
case AV_PIX_FMT_GBRP12BE:
case AV_PIX_FMT_GBRP14LE:
case AV_PIX_FMT_GBRP14BE:
+ case AV_PIX_FMT_GBRP16LE:
+ case AV_PIX_FMT_GBRP16BE:
w_align = 16; //FIXME assume 16 pixel per macroblock
h_align = 16 * 2; // interlaced needs 2 macroblocks height
break;