changeset 15204:49b46377b668

skip framelen-4 bytes after having successfully detected an mpeg audio frame
author nicodvb
date Sun, 17 Apr 2005 17:08:55 +0000
parents 72bde716c1b8
children 19243f85e164
files libmpdemux/demux_audio.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_audio.c	Sun Apr 17 13:45:55 2005 +0000
+++ b/libmpdemux/demux_audio.c	Sun Apr 17 17:08:55 2005 +0000
@@ -158,6 +158,7 @@
       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;