1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

ffprobe: show sample_fmt in the stream section

This commit is contained in:
Stefano Sabatini 2011-10-12 14:53:56 +02:00
parent b81f8880e0
commit 4edcdf5c44

View File

@ -644,6 +644,8 @@ static void show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_i
break;
case AVMEDIA_TYPE_AUDIO:
print_str("sample_fmt",
av_x_if_null(av_get_sample_fmt_name(dec_ctx->sample_fmt), "unknown"));
print_str("sample_rate", value_string(val_str, sizeof(val_str), dec_ctx->sample_rate, unit_hertz_str));
print_int("channels", dec_ctx->channels);
print_int("bits_per_sample", av_get_bits_per_sample(dec_ctx->codec_id));