[FFmpeg-devel] [PATCH] avcodec/nvenc: fix NULL pointer dereference
Timo Rothenpieler
timo at rothenpieler.org
Tue Feb 28 18:05:37 EET 2023
On 28.02.2023 16:03, Zhao Zhili wrote:
> I can move the check from here to close(). assert is helpful if it can catch
> bugs during development. It doesn't help much here since this is a rare case
> which doesn't triggered during development.
Crashing with an assertion is still much better than dereferencing a
NULL pointer.
I'll have a look at the calling function in a bit, to see if it can be
refactored to never run into the chance of calling this function when
not needed.
More information about the ffmpeg-devel
mailing list