[Mplayer-cvslog] CVS: main/libmpdemux video.c,1.22,1.23
Arpi of Ize
arpi at mplayerhq.hu
Thu Jul 25 18:39:25 CEST 2002
- Previous message: [Mplayer-cvslog] CVS: main sub_cc.c,1.1,1.2 sub_cc.h,1.2,1.3
- Next message: [Mplayer-cvslog] CVS: main mplayer.c,1.531,1.532 subreader.c,1.66,1.67 subreader.h,1.15,1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv12882/libmpdemux
Modified Files:
video.c
Log Message:
codmetics :)
Index: video.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/video.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- video.c 25 Jul 2002 03:37:28 -0000 1.22
+++ video.c 25 Jul 2002 16:39:22 -0000 1.23
@@ -187,19 +187,18 @@
static void process_userdata(unsigned char* buf,int len){
int i;
- if(!memcmp(buf,"CC",2)) /* if the user data starts with "CC", assume it is a CC info packet */
- {
- if(verbose)printf("video.c: process_userdata() detected Closed Captions!\n");
+ /* if the user data starts with "CC", assume it is a CC info packet */
+ if(len>2 && buf[0]=='C' && buf[1]=='C'){
+// mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"video.c: process_userdata() detected Closed Captions!\n");
if(subcc_enabled) subcc_process_data(buf+2,len-2);
}
- if(verbose)
- {
+ if(!verbose) return;
printf( "user_data: len=%3d %02X %02X %02X %02X '",
len, buf[0], buf[1], buf[2], buf[3]);
for(i=0;i<len;i++)
- if(buf[i]>=32 && buf[i]<127) putchar(buf[i]);
+// if(buf[i]>=32 && buf[i]<127) putchar(buf[i]);
+ if(buf[i]&0x60) putchar(buf[i]&0x7F);
printf("'\n");
- }
}
int video_read_frame(sh_video_t* sh_video,float* frame_time_ptr,unsigned char** start,int force_fps){
- Previous message: [Mplayer-cvslog] CVS: main sub_cc.c,1.1,1.2 sub_cc.h,1.2,1.3
- Next message: [Mplayer-cvslog] CVS: main mplayer.c,1.531,1.532 subreader.c,1.66,1.67 subreader.h,1.15,1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list