comparison libmpdemux/demux_real.c @ 8113:0d1ef5f06b3d

move timestamp debug printf to higher verbose level (hope it's ok) probably should move to mp_msg
author atmos4
date Tue, 05 Nov 2002 15:28:17 +0000
parents cb4c507c69aa
children 9fc45fe0d444
comparison
equal deleted inserted replaced
8112:6d97e935a071 8113:0d1ef5f06b3d
317 float v_pts; 317 float v_pts;
318 int kf=timestamp; 318 int kf=timestamp;
319 if(format==0x30335652){ // RV30 timestamps: 319 if(format==0x30335652){ // RV30 timestamps:
320 kf=2*(((s[1]&15)<<8)+s[2]); // 12-bit timestamp from frame header 320 kf=2*(((s[1]&15)<<8)+s[2]); // 12-bit timestamp from frame header
321 //kf=((s[1]<<8)+s[2])>>3; // 12-bit timestamp from frame header 321 //kf=((s[1]<<8)+s[2])>>3; // 12-bit timestamp from frame header
322 printf("\nTS: %08X (%04X) %02X %02X %02X %02X\n",timestamp,kf,s[0],s[1],s[2],s[3]); 322 if(verbose>1) printf("\nTS: %08X (%04X) %02X %02X %02X %02X\n",timestamp,kf,s[0],s[1],s[2],s[3]);
323 kf|=timestamp&(~0x1fff); // combine with packet timestamp 323 kf|=timestamp&(~0x1fff); // combine with packet timestamp
324 if(kf<timestamp-4096) kf+=8192; else // workaround wrap-around problems 324 if(kf<timestamp-4096) kf+=8192; else // workaround wrap-around problems
325 if(kf>timestamp+4096) kf-=8192; 325 if(kf>timestamp+4096) kf-=8192;
326 if(!(s[0]&0x8) || !(s[0]&0x10)){ // P || I frame -> swap timestamps 326 if(!(s[0]&0x8) || !(s[0]&0x10)){ // P || I frame -> swap timestamps
327 int tmp=kf; 327 int tmp=kf;