diff options
author | Marcoen Hirschberg <m.hirschberg@activevideo.com> | 2014-05-26 20:16:40 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-28 21:37:44 +0200 |
commit | 6e58b20cced05c303f1b35d5baa5f79b8ad612f5 (patch) | |
tree | 1010851871a329115500d70272cf35d1ebc961e7 /demux/demux_lavf.c | |
parent | b442b522f6d7064caaacc52021f7020b4ad4d261 (diff) | |
download | mpv-6e58b20cced05c303f1b35d5baa5f79b8ad612f5.tar.bz2 mpv-6e58b20cced05c303f1b35d5baa5f79b8ad612f5.tar.xz |
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.
Diffstat (limited to 'demux/demux_lavf.c')
-rw-r--r-- | demux/demux_lavf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index 2b43f4f27f..75e6cb41f0 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -433,7 +433,7 @@ static void handle_stream(demuxer_t *demuxer, int i) if (codec->channel_layout) mp_chmap_from_lavc(&sh_audio->channels, codec->channel_layout); sh_audio->samplerate = codec->sample_rate; - sh_audio->i_bps = codec->bit_rate / 8; + sh_audio->i_bps = codec->bit_rate; export_replaygain(demuxer, st); @@ -477,7 +477,7 @@ static void handle_stream(demuxer_t *demuxer, int i) else sh_video->aspect = codec->width * codec->sample_aspect_ratio.num / (float)(codec->height * codec->sample_aspect_ratio.den); - sh_video->i_bps = codec->bit_rate / 8; + sh_video->i_bps = codec->bit_rate; AVDictionaryEntry *rot = av_dict_get(st->metadata, "rotate", NULL, 0); if (rot && rot->value) { |