aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-10-01 01:26:55 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-01 01:26:55 +0200
commit3b6c0ba382cc261b81f1451366e56a7878d4919a (patch)
tree0b03a6a23afe28524e67841ccac0ba82c25fb873
parent17d51938d23c5f60f1ae0f4944724944c1b9dfdd (diff)
downloadffmpeg-3b6c0ba382cc261b81f1451366e56a7878d4919a.tar.gz
oggenc: favor av_freep()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/oggenc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c
index 21b350110e..a527ab3f83 100644
--- a/libavformat/oggenc.c
+++ b/libavformat/oggenc.c
@@ -516,11 +516,11 @@ static int ogg_write_trailer(AVFormatContext *s)
OGGStreamContext *oggstream = st->priv_data;
if (st->codec->codec_id == CODEC_ID_FLAC ||
st->codec->codec_id == CODEC_ID_SPEEX) {
- av_free(oggstream->header[0]);
- av_free(oggstream->header[1]);
+ av_freep(&oggstream->header[0]);
+ av_freep(&oggstream->header[1]);
}
else
- av_free(oggstream->header[1]);
+ av_freep(&oggstream->header[1]);
av_freep(&st->priv_data);
}
return 0;