[FFmpeg-devel] [PATCH] vaapi_h265: general_level_idc should times 3.

Li, Zhong zhong.li at intel.com
Tue Nov 28 10:01:20 EET 2017


>  libavcodec/vaapi_encode_h265.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/vaapi_encode_h265.c
> b/libavcodec/vaapi_encode_h265.c index 3ae92a7..32b8bc6 100644
> --- a/libavcodec/vaapi_encode_h265.c
> +++ b/libavcodec/vaapi_encode_h265.c
> @@ -219,7 +219,7 @@ static int
> vaapi_encode_h265_init_sequence_params(AVCodecContext *avctx)
>          .general_non_packed_constraint_flag = 1,
>          .general_frame_only_constraint_flag = 1,
> 
> -        .general_level_idc     = avctx->level,
> +        .general_level_idc     = avctx->level * 3,

LGTM. 
Actually it is a regression introduced by commit 00179664bccd1dd6fa0d1c40db453528757bf6f7. 

>      };



More information about the ffmpeg-devel mailing list