[Mplayer-cvslog] CVS: main demux_mpg.c,1.7,1.8
Gabor Lenart
lgb at users.sourceforge.net
Thu Apr 19 21:43:20 CEST 2001
Update of /cvsroot/mplayer/main
In directory usw-pr-cvs1:/tmp/cvs-serv4937/main
Modified Files:
demux_mpg.c
Log Message:
A fast'n'ugly hack to correct DVD VOB playback problems
Index: demux_mpg.c
===================================================================
RCS file: /cvsroot/mplayer/main/demux_mpg.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** demux_mpg.c 2001/04/18 01:56:10 1.7
--- demux_mpg.c 2001/04/19 19:43:18 1.8
***************
*** 1,5 ****
// MPG/VOB file parser for DEMUXER v2.5 by A'rpi/ESP-team
! //#define MAX_PS_PACKETSIZE 4096
#define MAX_PS_PACKETSIZE (224*1024)
--- 1,5 ----
// MPG/VOB file parser for DEMUXER v2.5 by A'rpi/ESP-team
! //#define MAX_PS_PACKETSIZE 2048
#define MAX_PS_PACKETSIZE (224*1024)
***************
*** 43,46 ****
--- 43,47 ----
len=stream_read_word(demux->stream);
if(verbose>=3) printf("PACKET len=%d",len);
+ if(len==62480){ demux->synced=0;return -1;} /* :) */
// if(len==0 || len>MAX_PS_PACKETSIZE) return -2; // invalid packet !!!!!!
if(len==0 || len>MAX_PS_PACKETSIZE){
***************
*** 214,217 ****
--- 215,219 ----
if(stream_eof(demux->stream)) break;
// sure: head=0x000001XX
+ if(verbose>=4) printf("*** head=0x%X\n",head);
if(demux->synced==0){
if(head==0x1BA) demux->synced=1;
_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog
More information about the MPlayer-cvslog
mailing list