]> git.sesse.net Git - ffmpeg/commit
mpjpegdec: don't try to alloc an AVIOContext when probe is guaranteed to fail
authorJames Almer <jamrial@gmail.com>
Mon, 8 Jun 2015 20:39:38 +0000 (17:39 -0300)
committerJames Almer <jamrial@gmail.com>
Mon, 8 Jun 2015 21:26:42 +0000 (18:26 -0300)
commit1382add59df149193620ca0714ceac0929208c88
tree7771b73f8245d1be1e46414d135154139369e56a
parentd5a645625d876288021d8192e4e3199087a753fc
mpjpegdec: don't try to alloc an AVIOContext when probe is guaranteed to fail

The first check is done without the AVIOContext, so alloc it only if said check succeeds

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/mpjpegdec.c