You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
libavcodec/amfenc_hevc.c: Fix Profile level option on AMF HEVC.
This commit is contained in:
@@ -136,7 +136,7 @@ static av_cold int amf_encode_init_hevc(AVCodecContext *avctx)
|
|||||||
AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_TIER, ctx->tier);
|
AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_TIER, ctx->tier);
|
||||||
|
|
||||||
profile_level = avctx->level;
|
profile_level = avctx->level;
|
||||||
if (profile_level == 0) {
|
if (profile_level == FF_LEVEL_UNKNOWN) {
|
||||||
profile_level = ctx->level;
|
profile_level = ctx->level;
|
||||||
}
|
}
|
||||||
if (profile_level != 0) {
|
if (profile_level != 0) {
|
||||||
|
Reference in New Issue
Block a user