diff options
author | Sitan Liu <nst799610810@gmail.com> | 2020-02-04 00:54:15 +0300 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2020-02-09 15:42:45 +0000 |
commit | a61bcb908358ef2d926471ae7440c470eb687d21 (patch) | |
tree | 9bed5b1eef63c2ae622a0a91f16ad7d853d85a2e /libavcodec/amfenc_hevc.c | |
parent | c96837043e2e0a6449e0e6eb3d4119a834f9a0da (diff) | |
download | ffmpeg-a61bcb908358ef2d926471ae7440c470eb687d21.tar.gz |
libavcodec/amfenc_hevc.c: Fix Maximum Reference Frames 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 411d444a62..77e57d2461 100644 --- a/libavcodec/amfenc_hevc.c +++ b/libavcodec/amfenc_hevc.c @@ -144,7 +144,7 @@ static av_cold int amf_encode_init_hevc(AVCodecContext *avctx) } AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_QUALITY_PRESET, ctx->quality); // Maximum Reference Frames - if (avctx->refs != 0) { + if (avctx->refs != -1) { AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_MAX_NUM_REFRAMES, avctx->refs); } // Aspect Ratio |