ffmpeg | branch: master | Christophe Gisquet <christophe.gisq...@gmail.com> | Wed Sep 30 10:14:59 2015 +0200| [7e4070d2e70bbd0e70dd83c06089e465a0eda704] | committer: Michael Niedermayer
dnxhddec: initialize with mb-aligned dimensions The coded size is a multiple of the macroblock size, which is 16. Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7e4070d2e70bbd0e70dd83c06089e465a0eda704 --- libavcodec/dnxhddec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c index e3dec78..755cf9a 100644 --- a/libavcodec/dnxhddec.c +++ b/libavcodec/dnxhddec.c @@ -87,6 +87,9 @@ static av_cold int dnxhd_decode_init(AVCodecContext *avctx) ctx->cid = -1; avctx->colorspace = AVCOL_SPC_BT709; + avctx->coded_width = FFALIGN(avctx->width, 16); + avctx->coded_height = FFALIGN(avctx->height, 16); + ctx->rows = av_mallocz_array(avctx->thread_count, sizeof(RowContext)); if (!ctx->rows) return AVERROR(ENOMEM); _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog