ffprobe: remove unused variable in show_format()
authorStefano Sabatini <stefasab@gmail.com>
Sun, 1 Jan 2012 16:19:33 +0000 (17:19 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Wed, 4 Jan 2012 00:06:11 +0000 (01:06 +0100)
ffprobe.c

index 8d4d021..0c1e3d0 100644 (file)
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1305,7 +1305,6 @@ static void show_format(WriterContext *w, AVFormatContext *fmt_ctx)
 {
     char val_str[128];
     int64_t size = avio_size(fmt_ctx->pb);
-    struct print_buf pbuf = {.s = NULL};
 
     print_section_header("format");
     print_str("filename",         fmt_ctx->filename);
@@ -1320,7 +1319,6 @@ static void show_format(WriterContext *w, AVFormatContext *fmt_ctx)
     else                       print_str_opt("bit_rate", "N/A");
     show_tags(fmt_ctx->metadata);
     print_section_footer("format");
-    av_free(pbuf.s);
     fflush(stdout);
 }