ffmpeg | branch: master | Sitan Liu <nst799610...@gmail.com> | Tue Feb  4 
00:54:14 2020 +0300| [c96837043e2e0a6449e0e6eb3d4119a834f9a0da] | committer: 
Mark Thompson

libavcodec/amfenc_hevc.c: Fix Profile level option on AMF HEVC.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c96837043e2e0a6449e0e6eb3d4119a834f9a0da
---

 libavcodec/amfenc_hevc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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) {

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to