changeset 4712:9262f4dc332f

mp3 position fixed
author arpi
date Fri, 15 Feb 2002 00:16:21 +0000
parents 39f5eccd54c2
children ad8b41562877
files libmpdemux/demux_audio.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_audio.c	Thu Feb 14 23:41:34 2002 +0000
+++ b/libmpdemux/demux_audio.c	Fri Feb 15 00:16:21 2002 +0000
@@ -1,5 +1,6 @@
 
 #include "config.h"
+#include "../mp_msg.h"
 
 #include <stdlib.h>
 #include <stdio.h>
@@ -83,7 +84,7 @@
   switch(frmt) {
   case MP3:
     sh_audio->format = 0x55;
-    demuxer->movi_start = st_pos;
+    demuxer->movi_start = st_pos-3;
     for(n = 0; n < 5 ; n++) {
       pos = mp_decode_mp3_header(hdr);
       if(pos < 0)
@@ -159,7 +160,7 @@
   priv = (da_priv_t*)malloc(sizeof(da_priv_t));
   priv->frmt = frmt;
   demuxer->priv = priv;
-  demuxer->movi_start = st_pos;
+//  demuxer->movi_start = st_pos;
   demuxer->audio->id = 0;
   demuxer->audio->sh = sh_audio;
   sh_audio->ds = demuxer->audio;
@@ -167,6 +168,8 @@
   if(stream_tell(s) != demuxer->movi_start)
     stream_seek(s,demuxer->movi_start);
 
+  mp_msg(MSGT_DEMUX,MSGL_V,"demux_audio: audio data 0x%X - 0x%X  \n",demuxer->movi_start,demuxer->movi_end);
+
   return 1;
 }