[FFmpeg-devel] [PATCH v1] libavdevice/gdigrab: change hwnd tail check fail logic to !=null
Zhao Zhili
quinkblack at foxmail.com
Thu Aug 15 15:12:11 EEST 2024
> On Aug 8, 2024, at 23:46, Zhao Zhili <quinkblack at foxmail.com> wrote:
>
>
>> On Aug 7, 2024, at 23:58, cyfdel-at-hotmail.com at ffmpeg.org wrote:
>>
>> From: eaphone <cyfdel at hotmail.com>
>>
>> ---
>> 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);
>
> LGTM.
Apply, thanks.
>
>> --
>> 2.45.2.windows.1
>>
>> _______________________________________________
>> ffmpeg-devel mailing list
>> ffmpeg-devel at ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-devel
mailing list