summaryrefslogtreecommitdiff
path: root/ffprobe.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-11-03 15:26:42 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-11-04 17:25:28 +0100
commit16f793571dfada708b3c10b97866b27732085471 (patch)
treebe54001011c2f3f6531e591e90f6272c47e207b3 /ffprobe.c
parent5cd1580ff8395db6ecce672951f7e42286f576da (diff)
ffprobe: Print format specific variables of codecs.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ffprobe.c b/ffprobe.c
index 470001c406..e2823d9b32 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -709,6 +709,17 @@ static void show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_i
} else {
print_str("codec_type", "unknown");
}
+ if (dec_ctx->codec && dec_ctx->codec->priv_class) {
+ AVOption *opt = NULL;
+ while (opt = av_opt_next(dec_ctx->priv_data,opt)) {
+ uint8_t *str;
+ if (opt->flags) continue;
+ if (av_opt_get(dec_ctx->priv_data, opt->name, 0, &str) >= 0) {
+ print_str(opt->name, str);
+ av_free(str);
+ }
+ }
+ }
if (fmt_ctx->iformat->flags & AVFMT_SHOW_IDS)
print_fmt("id", "0x%x", stream->id);