aboutsummaryrefslogtreecommitdiffstats
path: root/ffprobe.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-09-08 17:45:57 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-09-08 17:49:20 +0200
commit42b4da75b73d79e7323512bcfb7fe32ab0b24178 (patch)
tree64b9352a4e7ae6173f0c04385d29dcb2c802f97c /ffprobe.c
parent2b1f6a351638da0b2e2135ea7febc880d0b8b7d3 (diff)
downloadffmpeg-42b4da75b73d79e7323512bcfb7fe32ab0b24178.tar.gz
Print bits_per_raw_sample for ffprobe -show_streams.
Fixes ticket #3919.
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 2d48070713..9bb0f0f10c 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -2170,6 +2170,8 @@ static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_id
else print_str_opt("bit_rate", "N/A");
if (dec_ctx->rc_max_rate > 0) print_val ("max_bit_rate", dec_ctx->rc_max_rate, unit_bit_per_second_str);
else print_str_opt("max_bit_rate", "N/A");
+ if (dec_ctx->bits_per_raw_sample > 0) print_fmt("bits_per_raw_sample", "%d", dec_ctx->bits_per_raw_sample);
+ else print_str_opt("bits_per_raw_sample", "N/A");
if (stream->nb_frames) print_fmt ("nb_frames", "%"PRId64, stream->nb_frames);
else print_str_opt("nb_frames", "N/A");
if (nb_streams_frames[stream_idx]) print_fmt ("nb_read_frames", "%"PRIu64, nb_streams_frames[stream_idx]);