Changeset 5659 for pjproject/trunk/pjmedia/src/pjmedia-codec/opus.c
- Timestamp:
- Sep 25, 2017 2:58:42 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/opus.c
r5374 r5659 458 458 pjmedia_codec_param *attr ) 459 459 { 460 PJ_UNUSED_ARG(factory); 460 461 TRACE_((THIS_FILE, "%s:%d: - TRACE", __FUNCTION__, __LINE__)); 461 462 … … 521 522 struct opus_codec_factory *f = (struct opus_codec_factory*) factory; 522 523 524 PJ_UNUSED_ARG(ci); 523 525 TRACE_((THIS_FILE, "%s:%d: - TRACE", __FUNCTION__, __LINE__)); 524 526 … … 932 934 int fec = 0; 933 935 936 PJ_UNUSED_ARG(output_buf_len); 937 934 938 pj_mutex_lock (opus_data->mutex); 935 939 … … 1019 1023 pjmedia_frame *inframe; 1020 1024 1025 PJ_UNUSED_ARG(output_buf_len); 1021 1026 pj_mutex_lock (opus_data->mutex); 1022 1027 … … 1024 1029 /* Recover the first packet? Don't think so, fill it with zeroes. */ 1025 1030 pj_uint16_t samples_per_frame; 1026 samples_per_frame = ( opus_data->cfg.sample_rate *1027 1031 samples_per_frame = (pj_uint16_t)(opus_data->cfg.sample_rate * 1032 opus_data->ptime) / 1000; 1028 1033 output->type = PJMEDIA_FRAME_TYPE_AUDIO; 1029 1034 output->size = samples_per_frame << 1;
Note: See TracChangeset
for help on using the changeset viewer.