Browse Source

dnxhddec: initialize with mb-aligned dimensions

The coded size is a multiple of the macroblock size, which is 16.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.0
Christophe Gisquet Michael Niedermayer 10 years ago
parent
commit
7e4070d2e7
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/dnxhddec.c

+ 3
- 0
libavcodec/dnxhddec.c View File

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


Loading…
Cancel
Save