[FFmpeg-devel] [PATCH]Print bits_per_raw_sample for ffprobe -show_streams
Carl Eugen Hoyos
cehoyos at ag.or.at
Tue Sep 2 23:52:55 CEST 2014
Hi!
Attached patch fixes ticket #3919 for me.
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/ffprobe.c b/ffprobe.c
index 2d48070..34c7f1e 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -2170,6 +2170,7 @@ 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);
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]);
More information about the ffmpeg-devel
mailing list