[FFmpeg-cvslog] libavdevice/gdigrab: change hwnd tail check fail logic to !=null
eaphone
git at videolan.org
Thu Aug 15 15:11:18 EEST 2024
ffmpeg | branch: master | eaphone <cyfdel at hotmail.com> | Wed Aug 7 23:58:07 2024 +0800| [7897b0beedc822129f7e8e429995f9b6b3860d74] | committer: Zhao Zhili
libavdevice/gdigrab: change hwnd tail check fail logic to !=null
Signed-off-by: Zhao Zhili <zhilizhao at tencent.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7897b0beedc822129f7e8e429995f9b6b3860d74
---
libavdevice/gdigrab.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
More information about the ffmpeg-cvslog
mailing list