diff --git a/doc/ffprobe.xsd b/doc/ffprobe.xsd index 3984b7dc2e..f8e9fe9809 100644 --- a/doc/ffprobe.xsd +++ b/doc/ffprobe.xsd @@ -83,6 +83,7 @@ + diff --git a/ffprobe.c b/ffprobe.c index d53ec11624..c98bdac3ff 100644 --- a/ffprobe.c +++ b/ffprobe.c @@ -1364,6 +1364,7 @@ static void show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_i print_int("index", stream->index); if ((dec_ctx = stream->codec)) { + const char *profile = NULL; if ((dec = dec_ctx->codec)) { print_str("codec_name", dec->name); print_str("codec_long_name", dec->long_name); @@ -1372,6 +1373,11 @@ static void show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_i print_str_opt("codec_long_name", "unknown"); } + if (dec && (profile = av_get_profile_name(dec, dec_ctx->profile))) + print_str("profile", profile); + else + print_str_opt("profile", "unknown"); + s = av_get_media_type_string(dec_ctx->codec_type); if (s) print_str ("codec_type", s); else print_str_opt("codec_type", "unknown");