Changeset 3917


Ignore:
Timestamp:
Dec 20, 2011 10:01:35 AM (7 years ago)
Author:
nanang
Message:

Misc (re #1393): fix bitrate calculation in stream.c and wav_playlist.c.

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

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/stream.c

    r3890 r3917  
    20902090    if (stream->codec_param.info.fmt_id == PJMEDIA_FORMAT_L16) { 
    20912091        /* Raw format */ 
    2092         afd->avg_bps = afd->max_bps = afd->clock_rate * 
    2093                                       afd->bits_per_sample / 8; 
    2094  
     2092        afd->avg_bps = afd->max_bps = afd->clock_rate * afd->channel_count * 
     2093                                      afd->bits_per_sample; 
    20952094 
    20962095        stream->port.put_frame = &put_frame; 
  • pjproject/trunk/pjmedia/src/pjmedia/wav_playlist.c

    r3664 r3917  
    476476            afd->avg_bps = afd->max_bps = afd->clock_rate * 
    477477                                          afd->channel_count * 
    478                                           afd->bits_per_sample / 8; 
     478                                          afd->bits_per_sample; 
    479479 
    480480            has_wave_info = PJ_TRUE; 
Note: See TracChangeset for help on using the changeset viewer.