]> git.sesse.net Git - ffmpeg/commit
avformat/allformats: test pointer to be used
authorAlexisWilke <alexis@m2osw.com>
Mon, 4 Jan 2021 18:11:01 +0000 (10:11 -0800)
committerJames Almer <jamrial@gmail.com>
Tue, 12 Jan 2021 03:17:30 +0000 (00:17 -0300)
commitca21cb1e36ccae2ee71d4299d477fa9284c1f551
treebf7292107b7fccd864cba2e2e6e92188fdde5839
parent88519be8db66811e203408b413d9039ac9c3fe91
avformat/allformats: test pointer to be used

Two tests check the opposite pointer before using it. If only one of these
is set to a valid pointer, one of these functions will crash, the other will
ignore the pointer.

Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/allformats.c