提交 68fc3b51 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-10503 return causes break on first loop and can cause buildup in buffer

上级 ce5c69f6
......@@ -1915,7 +1915,6 @@ GCC_DIAG_ON(deprecated-declarations)
switch_core_timer_init(&context->audio_timer, "soft", 1, handle->samplerate / 1000, context->pool);
}
while ((inuse = switch_buffer_inuse(context->audio_buffer)) >= bytes) {
AVPacket pkt[2] = { {0} };
int got_packet[2] = {0};
......@@ -2025,10 +2024,6 @@ GCC_DIAG_ON(deprecated-declarations)
}
}
}
if (data) {
break;
}
}
end:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论