X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffprobe.c;h=71280836afb06469618dfa2894220786065b8740;hb=8142daca44d8825001eb7ee935e2f0a7933e09b2;hp=c304a6d8ad578eb894b4952e6bd219d641983686;hpb=aaa4abfdb8bb86263f666bc75edee1272076c356;p=ffmpeg diff --git a/ffprobe.c b/ffprobe.c index c304a6d8ad5..71280836afb 100644 --- a/ffprobe.c +++ b/ffprobe.c @@ -2148,10 +2148,16 @@ static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_id } } - if (dec && (profile = av_get_profile_name(dec, dec_ctx->profile))) + if (!do_bitexact && dec && (profile = av_get_profile_name(dec, dec_ctx->profile))) print_str("profile", profile); - else - print_str_opt("profile", "unknown"); + else { + if (dec_ctx->profile != FF_PROFILE_UNKNOWN) { + char profile_num[12]; + snprintf(profile_num, sizeof(profile_num), "%d", dec_ctx->profile); + print_str("profile", profile_num); + } else + print_str_opt("profile", "unknown"); + } s = av_get_media_type_string(dec_ctx->codec_type); if (s) print_str ("codec_type", s);