diff options
author | Sitan Liu <nst799610810@gmail.com> | 2020-02-04 00:54:14 +0300 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2020-02-09 15:42:45 +0000 |
commit | c96837043e2e0a6449e0e6eb3d4119a834f9a0da (patch) | |
tree | 367ab46374506cab24539517125c86b5237bee8c /libavcodec/amfenc_hevc.c | |
parent | 53a485cd374edff1f0701310af47bf0fd3dd3c0e (diff) | |
download | ffmpeg-c96837043e2e0a6449e0e6eb3d4119a834f9a0da.tar.gz |
libavcodec/amfenc_hevc.c: Fix Profile level option on AMF HEVC.
Diffstat (limited to 'libavcodec/amfenc_hevc.c')
-rw-r--r-- | libavcodec/amfenc_hevc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/amfenc_hevc.c b/libavcodec/amfenc_hevc.c index 8b4d289fac..411d444a62 100644 --- a/libavcodec/amfenc_hevc.c +++ b/libavcodec/amfenc_hevc.c @@ -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); profile_level = avctx->level; - if (profile_level == 0) { + if (profile_level == FF_LEVEL_UNKNOWN) { profile_level = ctx->level; } if (profile_level != 0) { |