mirror of https://git.videolan.org/git/ffmpeg.git
avprobe: display the codec profile in show_stream()
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
70026be8e5
commit
b1d22dc52f
|
@ -540,6 +540,7 @@ static void show_stream(AVFormatContext *fmt_ctx, int stream_idx)
|
||||||
AVStream *stream = fmt_ctx->streams[stream_idx];
|
AVStream *stream = fmt_ctx->streams[stream_idx];
|
||||||
AVCodecContext *dec_ctx;
|
AVCodecContext *dec_ctx;
|
||||||
AVCodec *dec;
|
AVCodec *dec;
|
||||||
|
const char *profile;
|
||||||
char val_str[128];
|
char val_str[128];
|
||||||
AVRational display_aspect_ratio;
|
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),
|
probe_str("codec_tag", tag_string(val_str, sizeof(val_str),
|
||||||
dec_ctx->codec_tag));
|
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) {
|
switch (dec_ctx->codec_type) {
|
||||||
case AVMEDIA_TYPE_VIDEO:
|
case AVMEDIA_TYPE_VIDEO:
|
||||||
probe_int("width", dec_ctx->width);
|
probe_int("width", dec_ctx->width);
|
||||||
|
|
Loading…
Reference in New Issue