mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
avcodec/nvenc: Check capabilities for interlaced encoding
This commit is contained in:
parent
a5eb70ad95
commit
808356c61c
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user