Mercurial > mplayer.hg
comparison libmpdemux/demux_mkv.c @ 20921:b22dfe3ddfaa
Don't spam the console with timestamps (non-error messages printed every
frame should be lower than V level)
author | rtogni |
---|---|
date | Tue, 14 Nov 2006 22:48:53 +0000 |
parents | 94b1a797661f |
children | bfd340cdac88 |
comparison
equal
deleted
inserted
replaced
20920:94b1a797661f | 20921:b22dfe3ddfaa |
---|---|
3075 kf = SHOW_BITS(13); // kf= 2*SHOW_BITS(12); | 3075 kf = SHOW_BITS(13); // kf= 2*SHOW_BITS(12); |
3076 orig_kf = kf; | 3076 orig_kf = kf; |
3077 if (pict_type <= 1) { | 3077 if (pict_type <= 1) { |
3078 // I frame, sync timestamps: | 3078 // I frame, sync timestamps: |
3079 track->rv_kf_base = timestamp - kf; | 3079 track->rv_kf_base = timestamp - kf; |
3080 mp_msg(MSGT_DEMUX, MSGL_V, "\nTS: base=%08X\n", track->rv_kf_base); | 3080 mp_msg(MSGT_DEMUX, MSGL_DBG2, "\nTS: base=%08X\n", track->rv_kf_base); |
3081 kf = timestamp; | 3081 kf = timestamp; |
3082 } else { | 3082 } else { |
3083 // P/B frame, merge timestamps: | 3083 // P/B frame, merge timestamps: |
3084 int tmp = timestamp - track->rv_kf_base; | 3084 int tmp = timestamp - track->rv_kf_base; |
3085 kf |= tmp & (~0x1fff); // combine with packet timestamp | 3085 kf |= tmp & (~0x1fff); // combine with packet timestamp |
3092 if (pict_type != 3) { // P || I frame -> swap timestamps | 3092 if (pict_type != 3) { // P || I frame -> swap timestamps |
3093 int tmp = kf; | 3093 int tmp = kf; |
3094 kf = track->rv_kf_pts; | 3094 kf = track->rv_kf_pts; |
3095 track->rv_kf_pts = tmp; | 3095 track->rv_kf_pts = tmp; |
3096 } | 3096 } |
3097 mp_msg(MSGT_DEMUX, MSGL_V, "\nTS: %08X -> %08X (%04X) %d %02X %02X %02X " | 3097 mp_msg(MSGT_DEMUX, MSGL_DBG2, "\nTS: %08X -> %08X (%04X) %d %02X %02X %02X " |
3098 "%02X %5d\n", timestamp, kf, orig_kf, pict_type, s[0], s[1], s[2], | 3098 "%02X %5d\n", timestamp, kf, orig_kf, pict_type, s[0], s[1], s[2], |
3099 s[3], kf - (int)(1000.0 * track->rv_pts)); | 3099 s[3], kf - (int)(1000.0 * track->rv_pts)); |
3100 } | 3100 } |
3101 v_pts = kf * 0.001f; | 3101 v_pts = kf * 0.001f; |
3102 track->rv_pts = v_pts; | 3102 track->rv_pts = v_pts; |