Commit 9b57b90c authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/vaapi_encode: Simplify code with av_clip_int8()

Reviewed-by: 's avatar"Li, Zhong" <zhong.li@intel.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 83e0b71f
......@@ -480,7 +480,7 @@ static int vaapi_encode_issue(AVCodecContext *avctx,
.width = roi->right - roi->left,
.height = roi->bottom - roi->top,
},
.roi_value = av_clip_c(v, INT8_MIN, INT8_MAX),
.roi_value = av_clip_int8(v),
};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment