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>
pull/321/head^2
Michael Niedermayer 5 years ago
parent 83e0b71f66
commit 9b57b90c4c
  1. 2
      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),
};
}

Loading…
Cancel
Save