1
mirror of https://github.com/mpv-player/mpv synced 2024-11-18 21:16:10 +01:00

Use ULL for > 32 bits constant.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18118 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2006-04-16 13:45:21 +00:00
parent 7f3d9de556
commit 1e390288ed

View File

@ -512,7 +512,7 @@ static int demux_audio_open(demuxer_t* demuxer) {
stream_read(s, (char *)&srate, 3);
srate = be2me_32(srate) >> 12;
stream_read(s, (char *)&num_samples, 5);
num_samples = (be2me_64(num_samples) >> 24) & 0xfffffffff;
num_samples = (be2me_64(num_samples) >> 24) & 0xfffffffffULL;
if (num_samples && srate)
sh_audio->i_bps = size * srate / num_samples;
}