]> git.sesse.net Git - ffmpeg/commit
avcodec/avcodec: Sanitize options before using them
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 16 Mar 2021 19:01:52 +0000 (20:01 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 20 Mar 2021 00:55:41 +0000 (01:55 +0100)
commit746796ceb49b3dab88d3c05f26c2406eceadf4ed
tree513d03be0f91cfdefc0959f514d60031102f3e74
parente3156fa7c2b85e9b8d1dfe6a92b0920624c0e65c
avcodec/avcodec: Sanitize options before using them

This is how it is supposed to happen, yet when using frame threading,
the codec's init function has been called before preinit. This can lead
to crashes when e.g. using unsupported lowres values for decoders
together with frame threading.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/avcodec.c