Changeset 2735 for pjproject


Ignore:
Timestamp:
Jun 2, 2009 6:01:49 PM (15 years ago)
Author:
nanang
Message:

Ticket #874: Updated some pjmedia codecs to maintain timestamp.

Location:
pjproject/trunk/pjmedia/src
Files:
6 edited

Legend:

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

    r2394 r2735  
    579579 
    580580    output->type = PJMEDIA_FRAME_TYPE_AUDIO; 
     581    output->timestamp = input->timestamp; 
    581582     
    582583    TRACE_((THIS_FILE, "G722 encode(): size=%d", output->size)); 
     
    625626    output->size = SAMPLES_PER_FRAME * 2; 
    626627    output->type = PJMEDIA_FRAME_TYPE_AUDIO; 
     628    output->timestamp = input->timestamp; 
    627629 
    628630#if !PLC_DISABLED 
  • pjproject/trunk/pjmedia/src/pjmedia-codec/g7221.c

    r2620 r2735  
    824824    output->type = PJMEDIA_FRAME_TYPE_AUDIO; 
    825825    output->size = codec_data->frame_size; 
     826    output->timestamp = input->timestamp; 
    826827 
    827828    return PJ_SUCCESS; 
     
    863864        bitobj.code_bit_count = 0; 
    864865        bitobj.number_of_bits_left = codec_data->frame_size_bits; 
     866 
     867        output->timestamp = input->timestamp; 
    865868    } else { 
    866869        pj_bzero(&bitobj, sizeof(bitobj)); 
  • pjproject/trunk/pjmedia/src/pjmedia-codec/gsm.c

    r2394 r2735  
    567567 
    568568    output->type = PJMEDIA_FRAME_TYPE_AUDIO; 
     569    output->timestamp = input->timestamp; 
    569570 
    570571    return PJ_SUCCESS; 
     
    596597    output->size = 320; 
    597598    output->type = PJMEDIA_FRAME_TYPE_AUDIO; 
     599    output->timestamp = input->timestamp; 
    598600 
    599601#if !PLC_DISABLED 
  • pjproject/trunk/pjmedia/src/pjmedia-codec/l16.c

    r2563 r2735  
    657657    output->type = PJMEDIA_FRAME_TYPE_AUDIO; 
    658658    output->size = input->size; 
     659    output->timestamp = input->timestamp; 
    659660 
    660661    return PJ_SUCCESS; 
     
    691692    output->type = PJMEDIA_FRAME_TYPE_AUDIO; 
    692693    output->size = input->size; 
     694    output->timestamp = input->timestamp; 
    693695 
    694696#if !PLC_DISABLED 
  • pjproject/trunk/pjmedia/src/pjmedia-codec/passthrough.c

    r2506 r2735  
    781781    } 
    782782 
     783    output->timestamp = input->timestamp; 
     784 
    783785    return PJ_SUCCESS; 
    784786} 
     
    816818                                          (pj_uint16_t)(input_.size << 3), 
    817819                                          (pj_uint16_t)desc->samples_per_frame); 
     820        output->timestamp = input->timestamp; 
    818821         
    819822        return PJ_SUCCESS; 
     
    824827                                      (pj_uint16_t)(input->size << 3), 
    825828                                      (pj_uint16_t)desc->samples_per_frame); 
     829    output->timestamp = input->timestamp; 
    826830 
    827831    return PJ_SUCCESS; 
  • pjproject/trunk/pjmedia/src/pjmedia/g711.c

    r2394 r2735  
    540540    output->type = PJMEDIA_FRAME_TYPE_AUDIO; 
    541541    output->size = (input->size >> 1); 
     542    output->timestamp = input->timestamp; 
    542543 
    543544    return PJ_SUCCESS; 
     
    583584    output->type = PJMEDIA_FRAME_TYPE_AUDIO; 
    584585    output->size = (input->size << 1); 
     586    output->timestamp = input->timestamp; 
    585587 
    586588#if !PLC_DISABLED 
Note: See TracChangeset for help on using the changeset viewer.