avcodec/dnxhdenc: fix recent regression
authorPaul B Mahol <onemda@gmail.com>
Sat, 15 Apr 2017 07:22:52 +0000 (09:22 +0200)
committerPaul B Mahol <onemda@gmail.com>
Sat, 15 Apr 2017 07:23:43 +0000 (09:23 +0200)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/dnxhdenc.c

index 1c270a4..59e3f73 100644 (file)
@@ -477,7 +477,7 @@ static av_cold int dnxhd_encode_init(AVCodecContext *avctx)
 
     if (ctx->cid_table->frame_size == DNXHD_VARIABLE) {
         ctx->frame_size = ff_dnxhd_get_hr_frame_size(ctx->cid,
-                                                     ctx->m.mb_width, ctx->m.mb_height);
+                                                     avctx->width, avctx->height);
         ctx->coding_unit_size = ctx->frame_size;
     } else {
         ctx->frame_size = ctx->cid_table->frame_size;