Commit 808356c6 authored by Timo Rothenpieler's avatar Timo Rothenpieler

avcodec/nvenc: Check capabilities for interlaced encoding

parent a5eb70ad
...@@ -306,6 +306,14 @@ static int nvenc_check_capabilities(AVCodecContext *avctx) ...@@ -306,6 +306,14 @@ static int nvenc_check_capabilities(AVCodecContext *avctx)
return AVERROR(ENOSYS); return AVERROR(ENOSYS);
} }
ret = nvenc_check_cap(avctx, NV_ENC_CAPS_SUPPORT_FIELD_ENCODING);
if (ret < 1 && avctx->flags & AV_CODEC_FLAG_INTERLACED_DCT) {
av_log(avctx, AV_LOG_VERBOSE,
"Interlaced encoding is not supported. Supported level: %d\n",
ret);
return AVERROR(ENOSYS);
}
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment