From 6e58b20cced05c303f1b35d5baa5f79b8ad612f5 Mon Sep 17 00:00:00 2001 From: Marcoen Hirschberg Date: Mon, 26 May 2014 20:16:40 +0200 Subject: audio: change values from bytes-per-second to bits-per-second The i_bps members of the sh_audio and dev_video structs are mostly used for displaying the average audio and video bitrates. Keeping them in bits-per-second avoids truncating them to bytes-per-second and changing them back lateron. --- video/decode/dec_video.c | 4 ++-- video/decode/dec_video.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'video') diff --git a/video/decode/dec_video.c b/video/decode/dec_video.c index dcadb5e491..57307b7399 100644 --- a/video/decode/dec_video.c +++ b/video/decode/dec_video.c @@ -388,8 +388,8 @@ int video_reconfig_filters(struct dec_video *d_video, struct sh_video *sh = d_video->header->video; MP_VERBOSE(d_video, "VIDEO: %dx%d %5.3f fps %5.1f kbps (%4.1f kB/s)\n", - p.w, p.h, sh->fps, sh->i_bps * 0.008, - sh->i_bps / 1000.0); + p.w, p.h, sh->fps, sh->i_bps / 1000.0, + sh->i_bps / 8000.0); MP_VERBOSE(d_video, "VDec: vo config request - %d x %d (%s)\n", p.w, p.h, vo_format_name(p.imgfmt)); diff --git a/video/decode/dec_video.h b/video/decode/dec_video.h index 58ec99a86b..e0f07e0531 100644 --- a/video/decode/dec_video.h +++ b/video/decode/dec_video.h @@ -73,7 +73,7 @@ struct dec_video { double decoded_pts; float stream_aspect; // aspect ratio in media headers (DVD IFO files) - int i_bps; // == bitrate (compressed bytes/sec) + int i_bps; // == bitrate (compressed bits/sec) float fps; // FPS from demuxer or from user override float initial_decoder_aspect; -- cgit v1.2.3