aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice
diff options
context:
space:
mode:
authoreaphone <cyfdel@hotmail.com>2024-08-07 23:58:07 +0800
committerZhao Zhili <zhilizhao@tencent.com>2024-08-15 20:10:33 +0800
commit7897b0beedc822129f7e8e429995f9b6b3860d74 (patch)
treed4e59b7a4970c027aacc0fe3bb3cb2fb7733b1cf /libavdevice
parenta1976e963fa441b6f645c425186f272d05def3f9 (diff)
downloadffmpeg-7897b0beedc822129f7e8e429995f9b6b3860d74.tar.gz
libavdevice/gdigrab: change hwnd tail check fail logic to !=null
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/gdigrab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/gdigrab.c b/libavdevice/gdigrab.c
index c91661c556..08a41c304b 100644
--- a/libavdevice/gdigrab.c
+++ b/libavdevice/gdigrab.c
@@ -281,7 +281,7 @@ gdigrab_read_header(AVFormatContext *s1)
hwnd = (HWND) strtoull(name, &p, 0);
- if (p == NULL || p == name || p[0] == '\0')
+ if (p == NULL || p == name || p[0] != '\0')
{
av_log(s1, AV_LOG_ERROR,
"Invalid window handle '%s', must be a valid integer.\n", name);