summaryrefslogtreecommitdiff
path: root/ffprobe.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2011-10-12 14:53:56 +0200
committerStefano Sabatini <stefasab@gmail.com>2011-10-12 14:55:28 +0200
commit4edcdf5c443b796dcd939d7d2a0cc08578726863 (patch)
tree9895f117f6ae86edee1ef6f320028990f210224e /ffprobe.c
parentb81f8880e010ccdef3604d9beb681d3c4c6a7bc0 (diff)
ffprobe: show sample_fmt in the stream section
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffprobe.c b/ffprobe.c
index b64f6160bb..e2f4c13379 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -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));