Changeset 5253 for pjproject/trunk/pjsip-apps/src/samples/encdec.c
- Timestamp:
- Mar 4, 2016 8:41:42 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/encdec.c
r5251 r5253 100 100 pjmedia_port *wavin, *wavout; 101 101 unsigned lost_pct; 102 unsigned bitstream_size = 0; 102 103 pj_status_t status; 103 104 … … 176 177 } 177 178 179 bitstream_size += frm_bit.size; 180 178 181 /* Parse the bitstream (not really necessary for this case 179 182 * since we always decode 1 frame, but it's still good … … 218 221 pj_pool_release(pool); 219 222 223 printf("Total encoded size: %u bytes\n", bitstream_size); 224 printf("Bitrate: %.3fKbps\n", bitstream_size*8.0/file_msec_duration); 220 225 return PJ_SUCCESS; 221 226 }
Note: See TracChangeset
for help on using the changeset viewer.