[FFmpeg-cvslog] oggdec: use av_freep() instead of av_free()
Michael Niedermayer
git at videolan.org
Mon Apr 11 11:49:27 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Apr 11 11:49:07 2011 +0200| [c104a6e90226eaa253aeba471c8859e0da922da7] | committer: Michael Niedermayer
oggdec: use av_freep() instead of av_free()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c104a6e90226eaa253aeba471c8859e0da922da7
---
libavformat/oggdec.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index e32f802..83ae9bd 100644
--- a/libavformat/oggdec.c
+++ b/libavformat/oggdec.c
@@ -247,8 +247,8 @@ ogg_read_page (AVFormatContext * s, int *str)
int n;
for (n = 0; n < ogg->nstreams; n++) {
- av_free(ogg->streams[n].buf);
- av_free(ogg->streams[n].private);
+ av_freep(&ogg->streams[n].buf);
+ av_freep(&ogg->streams[n].private);
}
ogg->curidx = -1;
ogg->nstreams = 0;
More information about the ffmpeg-cvslog
mailing list