avcodec/utils: Add AV_PIX_FMT_GBRAP16?E to avcodec_align_dimensions2()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 6 Feb 2016 23:40:25 +0000 (00:40 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 7 Feb 2016 00:13:36 +0000 (01:13 +0100)
Found-by: kierank
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/utils.c

index 0f28fec..ee73670 100644 (file)
@@ -351,6 +351,8 @@ void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height,
     case AV_PIX_FMT_GBRP14BE:
     case AV_PIX_FMT_GBRP16LE:
     case AV_PIX_FMT_GBRP16BE:
+    case AV_PIX_FMT_GBRAP16LE:
+    case AV_PIX_FMT_GBRAP16BE:
         w_align = 16; //FIXME assume 16 pixel per macroblock
         h_align = 16 * 2; // interlaced needs 2 macroblocks height
         break;