diff options
author | Janne Grunau <janne-libav@jannau.net> | 2012-10-09 15:41:24 +0200 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2012-10-09 15:41:24 +0200 |
commit | 1afd7a118fd71536971f991b823c89f1c9e87509 (patch) | |
tree | 9c9b702595dfd69795efba300991bd4ef2af2865 /libavfilter | |
parent | 18ff4d20201ae69fdeb2da2c90bdcbd33f7ac025 (diff) | |
download | ffmpeg-1afd7a118fd71536971f991b823c89f1c9e87509.tar.gz |
af_channelmap: free old extended_data on reallocation
Prevents writes to freed memory and the leak of the old extended data.
Fixes CID732303.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_channelmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_channelmap.c b/libavfilter/af_channelmap.c index 3e945d6e91..405a9c2c2f 100644 --- a/libavfilter/af_channelmap.c +++ b/libavfilter/af_channelmap.c @@ -338,8 +338,8 @@ static int channelmap_filter_samples(AVFilterLink *inlink, AVFilterBufferRef *bu if (buf->extended_data == buf->data) { buf->extended_data = new_extended_data; } else { - buf->extended_data = new_extended_data; av_free(buf->extended_data); + buf->extended_data = new_extended_data; } } else if (buf->extended_data != buf->data) { av_free(buf->extended_data); |