diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-08-28 19:26:49 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-08-30 20:23:02 +0200 |
commit | 9b57b90c4c2752426c6552a87a96821ff9708fac (patch) | |
tree | dd55a649079aebb22f851fe8b2f20bc67c80403e /libavcodec/vaapi_encode.c | |
parent | 83e0b71f66f2f0cc293305e2bd138d87660a8c5b (diff) | |
download | ffmpeg-9b57b90c4c2752426c6552a87a96821ff9708fac.tar.gz |
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>
Diffstat (limited to 'libavcodec/vaapi_encode.c')
-rw-r--r-- | libavcodec/vaapi_encode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c index 2fb43cf1a4..3be9159d37 100644 --- a/libavcodec/vaapi_encode.c +++ b/libavcodec/vaapi_encode.c @@ -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), }; } |