aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-09-06 13:43:20 +0200
committerPaul B Mahol <onemda@gmail.com>2018-09-06 13:47:48 +0200
commita77c2df5cc29293729d0c08e9641c1a56500c9f5 (patch)
tree87ed1fa2703824bf4fe9fb44167be4b93266f3ea
parent237bbf6678a0c3fc6962716edf72db1063de860c (diff)
downloadffmpeg-a77c2df5cc29293729d0c08e9641c1a56500c9f5.tar.gz
avcodec/dnxhdenc: interlaced is not supported in DNxHR
Fixes #7263.
-rw-r--r--libavcodec/dnxhdenc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c
index 5135eedfd6..9325f38baf 100644
--- a/libavcodec/dnxhdenc.c
+++ b/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) {