diff options
author | Zhong Li <zhong.li@intel.com> | 2019-04-28 17:15:55 +0800 |
---|---|---|
committer | Zhong Li <zhong.li@intel.com> | 2019-05-07 11:00:14 +0800 |
commit | 94ab39ec78c536703f77821fc039fee649105aab (patch) | |
tree | 9cc4c7aaa94af6f8277ed634d6242b777e46420d /libavcodec/qsvdec.c | |
parent | 48627aaf646270a8c98337ee208574543e499bfd (diff) |
lavc/qsvdec: fix hevc level incorrectly map
libmfx hevc level defination is same as h264, not level_idc of SPEC.
Signed-off-by: Zhong Li <zhong.li@intel.com>
Diffstat (limited to 'libavcodec/qsvdec.c')
-rw-r--r-- | libavcodec/qsvdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c index 2a8a032111..46aa2d6814 100644 --- a/libavcodec/qsvdec.c +++ b/libavcodec/qsvdec.c @@ -203,7 +203,7 @@ static int qsv_decode_init(AVCodecContext *avctx, QSVContext *q) param.mfx.CodecId = ret; param.mfx.CodecProfile = ff_qsv_profile_to_mfx(avctx->codec_id, avctx->profile); - param.mfx.CodecLevel = avctx->level == FF_LEVEL_UNKNOWN ? MFX_LEVEL_UNKNOWN : avctx->level; + param.mfx.CodecLevel = ff_qsv_level_to_mfx(avctx->codec_id, avctx->level); param.mfx.FrameInfo.BitDepthLuma = desc->comp[0].depth; param.mfx.FrameInfo.BitDepthChroma = desc->comp[0].depth; |