avcodec/utils: Add AV_PIX_FMT_GBRAP16?E to avcodec_align_dimensions2()

Found-by: kierank
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/231/head
Michael Niedermayer 9 years ago
parent 2272ab0e84
commit 9ee4c89348
  1. 2
      libavcodec/utils.c

@ -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;

Loading…
Cancel
Save