[FFmpeg-devel] [PATCH]Fix 2bpp and 4bpp rawvideo in mov

Carl Eugen Hoyos cehoyos at ag.or.at
Mon May 6 01:51:58 CEST 2013


Hi!

Attached patch fixes ticket #2536 for me.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index f45ff4c..ae920c5 100644
--- a/libavcodec/rawdec.c
+++ b/libavcodec/rawdec.c
@@ -133,7 +133,7 @@ static av_cold int raw_init_decoder(AVCodecContext *avctx)
             memset(context->palette->data, 0, AVPALETTE_SIZE);
     }
 
-    context->frame_size = avpicture_get_size(avctx->pix_fmt, avctx->width,
+    context->frame_size = avpicture_get_size(avctx->pix_fmt, FFALIGN(avctx->width, 16),
                                              avctx->height);
     if ((avctx->bits_per_coded_sample == 4 || avctx->bits_per_coded_sample == 2) &&
         avctx->pix_fmt == AV_PIX_FMT_PAL8 &&


More information about the ffmpeg-devel mailing list