mpjpegdec: don't try to alloc an AVIOContext when probe is guaranteed to fail
authorJames Almer <jamrial@gmail.com>
Mon, 8 Jun 2015 20:19:25 +0000 (17:19 -0300)
committerJanne Grunau <janne-libav@jannau.net>
Tue, 9 Jun 2015 08:07:11 +0000 (10:07 +0200)
commitb380337020e271c5431aa8ef8f8e9dfda5e919b2
treec1fbfa81c9424847ac777186cbd6cdf5997795cd
parent210921722bf828b3b895ebcbc34374e6c4452c6f
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

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
libavformat/mpjpegdec.c