[FFmpeg-cvslog] ffprobe: prefer av_freep() over av_free() for global print_format option.

Clément Bœsch git at videolan.org
Tue Oct 18 19:13:31 CEST 2011


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Tue Oct 18 19:09:40 2011 +0200| [2f468826ee18b4bb8ac86ae39fac299c4cbc2457] | committer: Clément Bœsch

ffprobe: prefer av_freep() over av_free() for global print_format option.

It could be re-used for instance in case ffprobe would support multiple
input files.

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

 ffprobe.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ffprobe.c b/ffprobe.c
index 52b33f8..470001c 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -842,7 +842,7 @@ static int probe_file(const char *filename)
     writer_close(&wctx);
 
 end:
-    av_free(print_format);
+    av_freep(&print_format);
 
     return ret;
 }



More information about the ffmpeg-cvslog mailing list