summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schmidt <schmidt@digadd.de>2012-05-25 15:34:12 -0700
committerLuca Barbato <lu_zero@gentoo.org>2012-05-25 16:41:47 -0700
commitb1d22dc52f678bc137b2bf76135ab6849366c292 (patch)
tree7a0cc176c7b0e51220858723fb8b3cb1a7e55127
parent70026be8e52460776f8023f35cdad3e854e752ae (diff)
downloadffmpeg-b1d22dc52f678bc137b2bf76135ab6849366c292.tar.gz
avprobe: display the codec profile in show_stream()
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-rw-r--r--avprobe.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/avprobe.c b/avprobe.c
index f809e46ae1..ae2eb205e5 100644
--- a/avprobe.c
+++ b/avprobe.c
@@ -540,6 +540,7 @@ static void show_stream(AVFormatContext *fmt_ctx, int stream_idx)
AVStream *stream = fmt_ctx->streams[stream_idx];
AVCodecContext *dec_ctx;
AVCodec *dec;
+ const char *profile;
char val_str[128];
AVRational display_aspect_ratio;
@@ -566,6 +567,10 @@ static void show_stream(AVFormatContext *fmt_ctx, int stream_idx)
probe_str("codec_tag", tag_string(val_str, sizeof(val_str),
dec_ctx->codec_tag));
+ /* print profile, if there is one */
+ if (dec && (profile = av_get_profile_name(dec, dec_ctx->profile)))
+ probe_str("profile", profile);
+
switch (dec_ctx->codec_type) {
case AVMEDIA_TYPE_VIDEO:
probe_int("width", dec_ctx->width);