[FFmpeg-devel] [PATCH] mpjpegdec: don't try to alloc an AVIOContext when probe is guaranteed to fail

James Almer jamrial at gmail.com
Mon Jun 8 23:28:17 CEST 2015


On 08/06/15 6:23 PM, Michael Niedermayer wrote:
> On Mon, Jun 08, 2015 at 05:40:55PM -0300, James Almer wrote:
>> The first check is done without the AVIOContext, so alloc it only if said check succeeds
>>
>> Signed-off-by: James Almer <jamrial at gmail.com>
>> ---
>>  libavformat/mpjpegdec.c | 7 +++----
>>  1 file changed, 3 insertions(+), 4 deletions(-)
> 
> LGTM
> 
> thanks

Pushed.



More information about the ffmpeg-devel mailing list