FS-9687: segfault Program terminated with signal SIGFPE, Arithmetic exception.

This commit is contained in:
Brian West authored and Mike Jerris committed 2016-11-16 11:23:12 -06:00
1 parent 44b3f7bf18
commit cb382084f0
1 file changed
+1 -1
+1 -1
View File
@@ -702,7 +702,7 @@ static switch_status_t switch_opus_destroy(switch_codec_t *codec)
int avg_encoded_bitrate = 0;
if (session) {
if (context->encoder_stats.frame_counter > 0) {
if (context->encoder_stats.encoded_bytes > 0 && (context->encoder_stats.encoded_msec > 1000)) {
avg_encoded_bitrate = (context->encoder_stats.encoded_bytes * 8) / (context->encoder_stats.encoded_msec / 1000);
}