[Mplayer-cvslog] CVS: main/libmpdemux demux_audio.c,1.2,1.3
Arpi of Ize
arpi at mplayer.dev.hu
Fri Feb 15 01:16:23 CET 2002
Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv10406
Modified Files:
demux_audio.c
Log Message:
mp3 position fixed
Index: demux_audio.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_audio.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- demux_audio.c 14 Feb 2002 18:37:33 -0000 1.2
+++ demux_audio.c 15 Feb 2002 00:16:21 -0000 1.3
@@ -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,13 +160,15 @@
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;
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;
}
More information about the MPlayer-cvslog
mailing list