Changeset 1882

Show
Ignore:
Timestamp:
09/08/98 16:33:16 (16 years ago)
Author:
ucacoxh
Message:

- Bug fix in convert_time, playout point calculation now more sensible when

upsampling is in action.

Location:
rat/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • rat/trunk/receive.c

    r1849 r1882  
    636636                } 
    637637                clear_old_participant_history(buf); 
    638  
    639638        } 
    640639 
  • rat/trunk/statistics.c

    r1880 r1882  
    284284                                 * we don't want playout point to be before that of existing data. 
    285285                                 */ 
    286                                 debug_msg("delay (%lu) var (%lu) playout (%lu)\n",  
    287                                           src->delay, var, src->playout 
    288                                         ); 
    289286                                src->playout = max((unsigned)src->playout, src->delay + var); 
    290287                        } else { 
  • rat/trunk/time.c

    r1878 r1882  
    140140                return ts * (to->freq / from->freq); 
    141141        } else { 
    142                 return ts * (from->freq / to->freq); 
     142                return ts / (from->freq / to->freq); 
    143143        } 
    144144}