[FFmpeg-devel] [PATCH] vaapi_h265: general_level_idc should times 3.
Ruiling Song
ruiling.song at intel.com
Tue Nov 28 09:46:47 EET 2017
Signed-off-by: Ruiling Song <ruiling.song at intel.com>
---
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,
};
vps->profile_tier_level.general_profile_compatibility_flag[avctx->profile & 31] = 1;
--
2.7.4
More information about the ffmpeg-devel
mailing list