diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2011-12-22 10:34:31 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2011-12-27 12:58:08 +0100 |
commit | f1a4182e8ea70d36c82c2a88e197144715dfd23d (patch) | |
tree | 2d21cdd80eb3946d0a2009c304a534808716dc43 /ffprobe.c | |
parent | 93613338fee6ecc633b588b7e264d2a379055866 (diff) | |
download | ffmpeg-f1a4182e8ea70d36c82c2a88e197144715dfd23d.tar.gz |
ffprobe: add show_private_data option
Diffstat (limited to 'ffprobe.c')
-rw-r--r-- | ffprobe.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -45,6 +45,7 @@ static int show_value_unit = 0; static int use_value_prefix = 0; static int use_byte_value_binary_prefix = 0; static int use_value_sexagesimal_format = 0; +static int show_private_data = 1; static char *print_format; @@ -1022,7 +1023,7 @@ static void show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_i } else { print_str_opt("codec_type", "unknown"); } - if (dec_ctx->codec && dec_ctx->codec->priv_class) { + if (dec_ctx->codec && dec_ctx->codec->priv_class && show_private_data) { const AVOption *opt = NULL; while (opt = av_opt_next(dec_ctx->priv_data,opt)) { uint8_t *str; @@ -1239,6 +1240,8 @@ static const OptionDef options[] = { { "show_format", OPT_BOOL, {(void*)&do_show_format} , "show format/container info" }, { "show_packets", OPT_BOOL, {(void*)&do_show_packets}, "show packets info" }, { "show_streams", OPT_BOOL, {(void*)&do_show_streams}, "show streams info" }, + { "show_private_data", OPT_BOOL, {(void*)&show_private_data}, "show private data" }, + { "private", OPT_BOOL, {(void*)&show_private_data}, "same as show_private_data" }, { "default", HAS_ARG | OPT_AUDIO | OPT_VIDEO | OPT_EXPERT, {(void*)opt_default}, "generic catch all option", "" }, { "i", HAS_ARG, {(void *)opt_input_file}, "read specified file", "input_file"}, { NULL, }, |