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. --- demux/stheader.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'demux/stheader.h') diff --git a/demux/stheader.h b/demux/stheader.h index 99dc35832a..c8a72795b0 100644 --- a/demux/stheader.h +++ b/demux/stheader.h @@ -67,7 +67,7 @@ struct sh_stream { typedef struct sh_audio { int samplerate; struct mp_chmap channels; - int i_bps; // == bitrate (compressed bytes/sec) + int i_bps; // == bitrate (compressed bits/sec) // win32-compatible codec parameters: MP_WAVEFORMATEX *wf; // note codec extradata may be either under "wf" or "codecdata" @@ -79,7 +79,7 @@ typedef struct sh_video { bool avi_dts; // use DTS timing; first frame and DTS is 0 float fps; // frames per second (set only if constant fps) float aspect; // aspect ratio stored in the file (for prescaling) - int i_bps; // == bitrate (compressed bytes/sec) + int i_bps; // == bitrate (compressed bits/sec) int disp_w, disp_h; // display size int rotate; // intended display rotation, in degrees, [0, 359] MP_BITMAPINFOHEADER *bih; -- cgit v1.2.3