提交 080c846f 编写于 作者: M Michael Niedermayer

swresample: do not put multiple statements in one line

Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 8bcf425d
......@@ -435,9 +435,15 @@ static int resample(SwrContext *s, AudioData *out_param, int out_count,
border = s->resampler->invert_initial_buffer(s->resample, &s->in_buffer,
&in, in_count, &s->in_buffer_index, &s->in_buffer_count);
if (border == INT_MAX) return 0;
else if (border < 0) return border;
else if (border) { buf_set(&in, &in, border); in_count -= border; s->resample_in_constraint = 0; }
if (border == INT_MAX) {
return 0;
} else if (border < 0) {
return border;
} else if (border) {
buf_set(&in, &in, border);
in_count -= border;
s->resample_in_constraint = 0;
}
do{
int ret, size, consumed;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册