mirror of
https://github.com/mpv-player/mpv
synced 2025-02-13 02:16:54 +00:00
skip framelen-4 bytes after having successfully detected an mpeg audio frame
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15205 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
7065445f1c
commit
4593e0f2cf
@ -158,6 +158,7 @@ int demux_audio_open(demuxer_t* demuxer) {
|
||||
frmt = WAV;
|
||||
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);
|
||||
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