forked from FFmpeg/FFmpeg
parent
d7ccfe58e3
commit
83635ac67b
1 changed files with 11 additions and 0 deletions
11
ffprobe.c
11
ffprobe.c
|
@ -1711,6 +1711,17 @@ static void show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_i
|
||||||
print_int("channels", dec_ctx->channels);
|
print_int("channels", dec_ctx->channels);
|
||||||
print_int("bits_per_sample", av_get_bits_per_sample(dec_ctx->codec_id));
|
print_int("bits_per_sample", av_get_bits_per_sample(dec_ctx->codec_id));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case AVMEDIA_TYPE_SUBTITLE:
|
||||||
|
if (dec_ctx->width)
|
||||||
|
print_int("width", dec_ctx->width);
|
||||||
|
else
|
||||||
|
print_str_opt("width", "N/A");
|
||||||
|
if (dec_ctx->height)
|
||||||
|
print_int("height", dec_ctx->height);
|
||||||
|
else
|
||||||
|
print_str_opt("height", "N/A");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
print_str_opt("codec_type", "unknown");
|
print_str_opt("codec_type", "unknown");
|
||||||
|
|
Loading…
Add table
Reference in a new issue