1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-23 04:24:35 +02:00

avcodec/vaapi_encode: Simplify code with av_clip_int8()

Reviewed-by: "Li, Zhong" <zhong.li@intel.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2019-08-28 19:26:49 +02:00
parent 83e0b71f66
commit 9b57b90c4c

View File

@ -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),
};
}