Ticket #2529: 0001-aacdec-free-frame-buffer-on-failure.patch

File 0001-aacdec-free-frame-buffer-on-failure.patch, 634 bytes (added by heleppkes, 3 years ago)

I don't have Valgrind handy, but can you check if this possible solves it?

  • libavcodec/aacdec.c

    From b7ddbf740841fe5130ce4606815eb12f384e36eb Mon Sep 17 00:00:00 2001
    From: Hendrik Leppkes <h.leppkes@gmail.com>
    Date: Fri, 3 May 2013 22:06:36 +0200
    Subject: [PATCH] aacdec: free frame buffer on failure
    
    ---
     libavcodec/aacdec.c | 1 +
     1 file changed, 1 insertion(+)
    
    diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
    index f60060a..034c272 100644
    a b static int aac_decode_frame_int(AVCodecContext *avctx, void *data, 
    26342634    } 
    26352635    return 0; 
    26362636fail: 
     2637    av_frame_unref(ac->frame); 
    26372638    pop_output_configuration(ac); 
    26382639    return err; 
    26392640}