mirror of
https://github.com/mpv-player/mpv
synced 2025-02-09 00:17:07 +00:00
nico partially fixed the bug i reported; here's the rest of the fix.
basically demux_audio was mixing data in its header buffer in a bogus manner, whereby it could sometimes "make up" valid mpeg headers where no such header actually occurred in the file. it should be correct now. btw these changes also fix the bug where mplayer reports huge initial cpu usage for sound when playing mp3 files. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15206 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4593e0f2cf
commit
5528785463
@ -159,6 +159,7 @@ int demux_audio_open(demuxer_t* demuxer) {
|
||||
break;
|
||||
} else if((mp3_flen = mp_get_mp3_header(hdr,&mp3_chans,&mp3_freq,&mpa_spf,&mpa_layer)) > 0) {
|
||||
stream_skip(s, mp3_flen - HDR_SIZE);
|
||||
step = HDR_SIZE;
|
||||
mp3_found = add_mp3_hdr(&mp3_hdrs, st_pos, mp3_chans, mp3_freq, mp3_flen);
|
||||
if (mp3_found) {
|
||||
frmt = MP3;
|
||||
|
Loading…
Reference in New Issue
Block a user