Fixes #7263.
Paul B Mahol authored on 2018/09/06 20:43:20... | ... |
@@ -473,6 +473,12 @@ static av_cold int dnxhd_encode_init(AVCodecContext *avctx) |
473 | 473 |
ctx->m.mb_height /= 2; |
474 | 474 |
} |
475 | 475 |
|
476 |
+ if (ctx->interlaced && ctx->profile != FF_PROFILE_DNXHD) { |
|
477 |
+ av_log(avctx, AV_LOG_ERROR, |
|
478 |
+ "Interlaced encoding is not supported for DNxHR profiles.\n"); |
|
479 |
+ return AVERROR(EINVAL); |
|
480 |
+ } |
|
481 |
+ |
|
476 | 482 |
ctx->m.mb_num = ctx->m.mb_height * ctx->m.mb_width; |
477 | 483 |
|
478 | 484 |
if (ctx->cid_table->frame_size == DNXHD_VARIABLE) { |