[FFmpeg-devel] [PATCH 4/7] Ensure that the video dimension are a multiple of 16 in the 4xm decoder.

fenrir at elivagar.org fenrir at elivagar.org
Sun Oct 2 00:38:29 CEST 2011


From: Laurent Aimar <fenrir at videolan.org>

---
 libavcodec/4xm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c
index 6335879..6ee9b34 100644
--- a/libavcodec/4xm.c
+++ b/libavcodec/4xm.c
@@ -866,6 +866,8 @@ static av_cold int decode_init(AVCodecContext *avctx){
         return 1;
     }
 
+    avctx->width  = FFALIGN(avctx->width, 16);
+    avctx->height = FFALIGN(avctx->height, 16);
     avcodec_get_frame_defaults(&f->current_picture);
     avcodec_get_frame_defaults(&f->last_picture);
     f->version= AV_RL32(avctx->extradata)>>16;
-- 
1.7.2.5



More information about the ffmpeg-devel mailing list