[libav-commits] avcodec: free extended_data instead address of it

Janne Grunau git at libav.org
Tue Oct 9 14:41:52 CEST 2012


Module: libav
Branch: master
Commit: 3fbda309e553428211b79ea0ca128b3aaf0f9033

Author:    Janne Grunau <janne-libav at jannau.net>
Committer: Janne Grunau <janne-libav at jannau.net>
Date:      Tue Oct  9 14:04:46 2012 +0200

avcodec: free extended_data instead address of it

Fixes CID732173.

---

 libavcodec/utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index bd80d7b..48d6348 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -322,7 +322,7 @@ static int audio_get_buffer(AVCodecContext *avctx, AVFrame *frame)
         if (buf->extended_data[0] && buf_size > buf->audio_data_size) {
             av_free(buf->extended_data[0]);
             if (buf->extended_data != buf->data)
-                av_free(&buf->extended_data);
+                av_free(buf->extended_data);
             buf->extended_data = NULL;
             buf->data[0]       = NULL;
         }



More information about the libav-commits mailing list