avcodec/dnxhdenc: interlaced is not supported in DNxHR

Fixes #7263.
pull/296/head
Paul B Mahol 6 years ago
parent 237bbf6678
commit a77c2df5cc
  1. 6
      libavcodec/dnxhdenc.c

@ -473,6 +473,12 @@ static av_cold int dnxhd_encode_init(AVCodecContext *avctx)
ctx->m.mb_height /= 2;
}
if (ctx->interlaced && ctx->profile != FF_PROFILE_DNXHD) {
av_log(avctx, AV_LOG_ERROR,
"Interlaced encoding is not supported for DNxHR profiles.\n");
return AVERROR(EINVAL);
}
ctx->m.mb_num = ctx->m.mb_height * ctx->m.mb_width;
if (ctx->cid_table->frame_size == DNXHD_VARIABLE) {

Loading…
Cancel
Save