aboutsummaryrefslogtreecommitdiffstats
path: root/libswresample/swresample.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-09-16 22:44:15 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-09-16 22:44:15 +0200
commit9078b40d354b1e3e8995ca781d4ccfda0044a8f4 (patch)
treefe133d189c1eff5a4e376fc18246e0229b8e7946 /libswresample/swresample.c
parentc051d668b5dbf040f92551f78b1b13635b8fcfb8 (diff)
downloadffmpeg-9078b40d354b1e3e8995ca781d4ccfda0044a8f4.tar.gz
swresample: replace 2 av_free() by av_freep()
avoids leaving stale pointers in memory Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/swresample.c')
-rw-r--r--libswresample/swresample.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswresample/swresample.c b/libswresample/swresample.c
index cdfe5bfee5..b9a3c3d90e 100644
--- a/libswresample/swresample.c
+++ b/libswresample/swresample.c
@@ -468,7 +468,7 @@ int swri_realloc_audio(AudioData *a, int count){
if(a->planar) memcpy(a->ch[i], old.ch[i], a->count*a->bps);
}
if(!a->planar) memcpy(a->ch[0], old.ch[0], a->count*a->ch_count*a->bps);
- av_free(old.data);
+ av_freep(&old.data);
a->count= count;
return 1;