提交 5d3c02a7 authored 作者: Anthony Minessale's avatar Anthony Minessale

update

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5201 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 0236383f
...@@ -836,11 +836,11 @@ static int III_dequantize_sample(struct mpstr *mp, real xr[SBLIMIT][SSLIMIT], in ...@@ -836,11 +836,11 @@ static int III_dequantize_sample(struct mpstr *mp, real xr[SBLIMIT][SSLIMIT], in
v = gr_info->pow2gain[sanity]; v = gr_info->pow2gain[sanity];
cb = *m++; cb = *m++;
} else { } else {
return 0; return 1;
} }
} else { } else {
return 0; return 1;
} }
} }
......
...@@ -271,7 +271,8 @@ static size_t decode_fd(shout_context_t * context, void *data, size_t bytes) ...@@ -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"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Decoder Error!\n");
} }
dlen = 0; dlen = 0;
continue; //continue;
goto error;
} }
context->mp3err = 0; context->mp3err = 0;
...@@ -728,7 +729,11 @@ static switch_status_t shout_file_seek(switch_file_handle_t *handle, unsigned in ...@@ -728,7 +729,11 @@ static switch_status_t shout_file_seek(switch_file_handle_t *handle, unsigned in
} else if (context->fp) { } else if (context->fp) {
*cur_sample = fseek(context->fp, *cur_sample, whence); *cur_sample = fseek(context->fp, *cur_sample, whence);
} }
ExitMP3(&context->mp);
InitMP3(&context->mp, OUTSCALE, context->samplerate);
switch_buffer_zero(context->audio_buffer); switch_buffer_zero(context->audio_buffer);
} else { } else {
context->err++; context->err++;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论