mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-19 13:30:03 +01: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:
@@ -480,7 +480,7 @@ static int vaapi_encode_issue(AVCodecContext *avctx,
|
|||||||
.width = roi->right - roi->left,
|
.width = roi->right - roi->left,
|
||||||
.height = roi->bottom - roi->top,
|
.height = roi->bottom - roi->top,
|
||||||
},
|
},
|
||||||
.roi_value = av_clip_c(v, INT8_MIN, INT8_MAX),
|
.roi_value = av_clip_int8(v),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user