mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
ffprobe: Do not print profile names in -bitexact
Instead, print "unknown" if it's unknown, or their numerical values if they are known. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
65440916c1
commit
9670165cc2
12
ffprobe.c
12
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);
|
||||
|
Loading…
Reference in New Issue
Block a user