[Freeswitch-svn] [commit] r7798 - freeswitch/trunk/src/mod/formats/mod_shout
Freeswitch SVN
anthm at freeswitch.org
Wed Mar 5 17:01:45 EST 2008
Author: anthm
Date: Wed Mar 5 17:01:45 2008
New Revision: 7798
Modified:
freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.c
Log:
fix MODFORM-6
Modified: freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.c
==============================================================================
--- freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.c (original)
+++ freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.c Wed Mar 5 17:01:45 2008
@@ -272,12 +272,13 @@
}
if (decode_status == MP3_ERR) {
- if (++context->mp3err >= 20) {
+ if (++context->mp3err >= 5) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Decoder Error!\n");
+ goto error;
}
+
dlen = 0;
- //continue;
- goto error;
+ continue;
}
context->mp3err = 0;
@@ -586,10 +587,11 @@
}
+ lame_set_brate(context->gfp, 24 * (handle->samplerate / 8000) * handle->channels);
lame_set_num_channels(context->gfp, handle->channels);
lame_set_in_samplerate(context->gfp, handle->samplerate);
- lame_set_brate(context->gfp, 64);
lame_set_out_samplerate(context->gfp, handle->samplerate);
+
if (handle->channels == 2) {
lame_set_mode(context->gfp, STEREO);
} else {
More information about the Freeswitch-svn
mailing list