Mercurial > mplayer.hg
changeset 8116:3757669b825b
skip id3v2 junk when looking for mp3
author | rfelker |
---|---|
date | Tue, 05 Nov 2002 23:28:52 +0000 |
parents | 2406eb28a601 |
children | dda027d5a845 |
files | libmpdemux/demux_audio.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_audio.c Tue Nov 05 22:45:53 2002 +0000 +++ b/libmpdemux/demux_audio.c Tue Nov 05 23:28:52 2002 +0000 @@ -65,6 +65,13 @@ // We found wav header. Now we can have 'fmt ' or a mp3 header // empty the buffer step = 4; + } else if( hdr[0] == 'I' && hdr[1] == 'D' && hdr[2] == '3' && (hdr[3] >= 2)) { + int len; + stream_skip(s,2); + stream_read(s,hdr,4); + len = (hdr[0]<<21) | (hdr[1]<<14) | (hdr[2]<<7) | hdr[3]; + stream_skip(s,len); + step = 4; } else if( hdr[0] == 'f' && hdr[1] == 'm' && hdr[2] == 't' && hdr[3] == ' ' ) { frmt = WAV; break;