aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorHaihao Xiang <haihao.xiang@intel.com>2023-07-24 10:41:06 +0800
committerHaihao Xiang <haihao.xiang@intel.com>2023-07-31 09:09:20 +0800
commite63d9ba007cb628653c7e9349eafc98654fba49e (patch)
tree1e3fbb22f777dc6d88772f24cbc584724dfd2c8b /libavutil
parenta105b11a9d1d8be33cd9ba29da41314c1abf7c82 (diff)
downloadffmpeg-e63d9ba007cb628653c7e9349eafc98654fba49e.tar.gz
lavu/hwcontext_qsv: silence the warning
libavutil/hwcontext_qsv.c: In function ‘qsv_map_to’: libavutil/hwcontext_qsv.c:1905:47: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/hwcontext_qsv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c
index d4b564ba2d..1bfda9e69b 100644
--- a/libavutil/hwcontext_qsv.c
+++ b/libavutil/hwcontext_qsv.c
@@ -1902,7 +1902,7 @@ static int qsv_map_to(AVHWFramesContext *dst_ctx,
case AV_PIX_FMT_VAAPI:
{
mfxHDLPair *pair = (mfxHDLPair*)hwctx->surfaces[i].Data.MemId;
- if (*(VASurfaceID*)pair->first == (VASurfaceID)src->data[3]) {
+ if (*(VASurfaceID*)pair->first == (VASurfaceID)(uintptr_t)src->data[3]) {
index = i;
break;
}