avdevice/gdigrab: suppress int to pointer cast warning

Fixes: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
Kacper Michajłow
2025-12-01 21:09:34 +01:00
parent f4312ea138
commit f7b7972f78

View File

@@ -279,7 +279,7 @@ gdigrab_read_header(AVFormatContext *s1)
char *p; char *p;
name = filename + 5; name = filename + 5;
hwnd = (HWND) strtoull(name, &p, 0); hwnd = (HWND)(intptr_t) strtoull(name, &p, 0);
if (p == NULL || p == name || p[0] != '\0') if (p == NULL || p == name || p[0] != '\0')
{ {