[FFmpeg-devel] [PATCH v2] gdigrab: Allow capturing a window by its handle
Nicolas George
george at nsup.org
Tue Dec 12 16:07:28 EET 2023
Lena via ffmpeg-devel (12023-12-12):
> The documentation for `strtol` says that on error, 0 is returned. This
> makes it impossible to specify a window handle of 0 (the whole
> desktop), but that case is already covered by the "desktop" input
> filename, so it should be fine.
The correct way to test for error in strtol is to check the endptr.
But just use a single sscanf() and %n to see if it reached the end of
the string.
> -There are two options for the input filename:
> +There are three options for the input filename:
“Amongst options for the imput filenames are such elements as:”
;-)
Regards,
--
Nicolas George
More information about the ffmpeg-devel
mailing list