Changeset 5153 for pjproject/trunk


Ignore:
Timestamp:
Aug 7, 2015 9:22:32 AM (9 years ago)
Author:
ming
Message:

Re #1843 (misc): Fixed wrong calculation of timestamp in L16 codec (should be multiplied by samples per frame instead of frame size).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/l16.c

    r4987 r5153  
    592592        frames[count].buf = pkt; 
    593593        frames[count].size = data->frame_size; 
    594         frames[count].timestamp.u64 = ts->u64 + (count * data->frame_size); 
     594        frames[count].timestamp.u64 = ts->u64 + (count * data->frame_size >> 1); 
    595595 
    596596        pkt = ((char*)pkt) + data->frame_size; 
Note: See TracChangeset for help on using the changeset viewer.