libavdevice/gdigrab: change hwnd tail check fail logic to !=null
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
parent
a1976e963f
commit
7897b0beed
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ gdigrab_read_header(AVFormatContext *s1)
|
||||||
|
|
||||||
hwnd = (HWND) strtoull(name, &p, 0);
|
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,
|
av_log(s1, AV_LOG_ERROR,
|
||||||
"Invalid window handle '%s', must be a valid integer.\n", name);
|
"Invalid window handle '%s', must be a valid integer.\n", name);
|
||||||
|
|
Loading…
Add table
Reference in a new issue