comparison libmpdemux/video.c @ 6791:a3b2f80f3a26

codmetics :)
author arpi
date Thu, 25 Jul 2002 16:39:22 +0000
parents b38e38b6f88f
children 1a747aee653b
comparison
equal deleted inserted replaced
6790:414f8c72f6e7 6791:a3b2f80f3a26
185 return 1; 185 return 1;
186 } 186 }
187 187
188 static void process_userdata(unsigned char* buf,int len){ 188 static void process_userdata(unsigned char* buf,int len){
189 int i; 189 int i;
190 if(!memcmp(buf,"CC",2)) /* if the user data starts with "CC", assume it is a CC info packet */ 190 /* if the user data starts with "CC", assume it is a CC info packet */
191 { 191 if(len>2 && buf[0]=='C' && buf[1]=='C'){
192 if(verbose)printf("video.c: process_userdata() detected Closed Captions!\n"); 192 // mp_msg(MSGT_DECVIDEO,MSGL_DBG2,"video.c: process_userdata() detected Closed Captions!\n");
193 if(subcc_enabled) subcc_process_data(buf+2,len-2); 193 if(subcc_enabled) subcc_process_data(buf+2,len-2);
194 } 194 }
195 if(verbose) 195 if(!verbose) return;
196 {
197 printf( "user_data: len=%3d %02X %02X %02X %02X '", 196 printf( "user_data: len=%3d %02X %02X %02X %02X '",
198 len, buf[0], buf[1], buf[2], buf[3]); 197 len, buf[0], buf[1], buf[2], buf[3]);
199 for(i=0;i<len;i++) 198 for(i=0;i<len;i++)
200 if(buf[i]>=32 && buf[i]<127) putchar(buf[i]); 199 // if(buf[i]>=32 && buf[i]<127) putchar(buf[i]);
200 if(buf[i]&0x60) putchar(buf[i]&0x7F);
201 printf("'\n"); 201 printf("'\n");
202 }
203 } 202 }
204 203
205 int video_read_frame(sh_video_t* sh_video,float* frame_time_ptr,unsigned char** start,int force_fps){ 204 int video_read_frame(sh_video_t* sh_video,float* frame_time_ptr,unsigned char** start,int force_fps){
206 demux_stream_t *d_video=sh_video->ds; 205 demux_stream_t *d_video=sh_video->ds;
207 demuxer_t *demuxer=d_video->demuxer; 206 demuxer_t *demuxer=d_video->demuxer;