[Mplayer-cvslog] CVS: main mplayer.c,1.357,1.358
Arpi of Ize
arpi at mplayer.dev.hu
Fri Dec 28 20:47:39 CET 2001
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv23277
Modified Files:
mplayer.c
Log Message:
some spudec cleanup
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.357
retrieving revision 1.358
diff -u -r1.357 -r1.358
--- mplayer.c 28 Dec 2001 19:20:12 -0000 1.357
+++ mplayer.c 28 Dec 2001 19:47:37 -0000 1.358
@@ -2215,16 +2215,11 @@
// DVD sub:
if(vo_spudec){
unsigned char* packet=NULL;
- int len=ds_get_packet_sub(d_dvdsub,&packet);
+ int len;
current_module="spudec";
- if(len>=2){
- int len2;
- len2=(packet[0]<<8)+packet[1];
- mp_msg(MSGT_CPLAYER,MSGL_V,"\rDVD sub: %d / %d v_pts=%5.3f s_pts=%5.3f \n",len,len2,d_video->pts,d_dvdsub->pts);
+ while((len=ds_get_packet_sub(d_dvdsub,&packet))>0){
+ mp_msg(MSGT_CPLAYER,MSGL_V,"\rDVD sub: len=%d v_pts=%5.3f s_pts=%5.3f \n",len,d_video->pts,d_dvdsub->pts);
spudec_assemble(vo_spudec,packet,len,100*d_dvdsub->pts);
- } else {
- if(len>=0)
- mp_msg(MSGT_CPLAYER,MSGL_V,"invalid dvd sub\n");
}
spudec_heartbeat(vo_spudec,100*d_video->pts);
current_module=NULL;
More information about the MPlayer-cvslog
mailing list