git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5201 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-05-17 18:19:37 +00:00
parent 0236383f82
commit 5d3c02a7bc
2 changed files with 8 additions and 3 deletions

View File

@ -836,11 +836,11 @@ static int III_dequantize_sample(struct mpstr *mp, real xr[SBLIMIT][SSLIMIT], in
v = gr_info->pow2gain[sanity];
cb = *m++;
} else {
return 0;
return 1;
}
} else {
return 0;
return 1;
}
}

View File

@ -271,7 +271,8 @@ static size_t decode_fd(shout_context_t * context, void *data, size_t bytes)
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Decoder Error!\n");
}
dlen = 0;
continue;
//continue;
goto error;
}
context->mp3err = 0;
@ -728,7 +729,11 @@ static switch_status_t shout_file_seek(switch_file_handle_t *handle, unsigned in
} else if (context->fp) {
*cur_sample = fseek(context->fp, *cur_sample, whence);
}
ExitMP3(&context->mp);
InitMP3(&context->mp, OUTSCALE, context->samplerate);
switch_buffer_zero(context->audio_buffer);
} else {
context->err++;
}