[FFmpeg-cvslog] avcodec/utils: add GBRP16 to avcodec_align_dimensions2()

Michael Niedermayer git at videolan.org
Fri Nov 14 19:28:33 CET 2014


ffmpeg | branch: release/2.0 | Michael Niedermayer <michaelni at gmx.at> | Sun Aug 24 23:33:40 2014 +0200| [d4253b3a5b7431053810844323a5cb4ea0293810] | committer: Michael Niedermayer

avcodec/utils: add GBRP16 to avcodec_align_dimensions2()

Fixes Ticket3869

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 3fe9e7be4c70c8fccdcd56fd19276e668cfb7de8)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d4253b3a5b7431053810844323a5cb4ea0293810
---

 libavcodec/utils.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index f3dc853..7f6792d 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -260,6 +260,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;



More information about the ffmpeg-cvslog mailing list