[FFmpeg-cvslog] oggdec: use av_freep() instead of av_free()

Michael Niedermayer git at videolan.org
Thu Apr 21 03:40:33 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Apr 12 04:22:31 2011 +0000| [52512d0a4340895ba8bd9d2af48f256b969559d2] | committer: Anton Khirnov

oggdec: use av_freep() instead of av_free()

Signed-off-by: Anton Khirnov <anton at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=52512d0a4340895ba8bd9d2af48f256b969559d2
---

 libavformat/oggdec.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index ce1152d..d272579 100644
--- a/libavformat/oggdec.c
+++ b/libavformat/oggdec.c
@@ -245,8 +245,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