aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2012-10-09 14:04:46 +0200
committerJanne Grunau <janne-libav@jannau.net>2012-10-09 14:04:46 +0200
commit3fbda309e553428211b79ea0ca128b3aaf0f9033 (patch)
tree45aa733c638363f0549a66e955c1c1f40d7ce852 /libavcodec/utils.c
parent7bc433b36dbb0747c0c03e8222044b06e63ff75f (diff)
downloadffmpeg-3fbda309e553428211b79ea0ca128b3aaf0f9033.tar.gz
avcodec: free extended_data instead address of it
Fixes CID732173.
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c2
1 files changed, 1 insertions, 1 deletions
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;
}