From 3fbda309e553428211b79ea0ca128b3aaf0f9033 Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Tue, 9 Oct 2012 14:04:46 +0200 Subject: [PATCH] avcodec: free extended_data instead address of it Fixes CID732173. --- libavcodec/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index bd80d7bf13..48d63489bc 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; }