[FFmpeg-cvslog] oggenc: favor av_freep()
Michael Niedermayer
git at videolan.org
Sat Oct 1 01:51:45 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct 1 01:26:55 2011 +0200| [3b6c0ba382cc261b81f1451366e56a7878d4919a] | committer: Michael Niedermayer
oggenc: favor av_freep()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3b6c0ba382cc261b81f1451366e56a7878d4919a
---
libavformat/oggenc.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c
index 21b3501..a527ab3 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;
More information about the ffmpeg-cvslog
mailing list