1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

swresample: do not put multiple statements in one line

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-10-16 18:18:40 +02:00
parent 8bcf425d06
commit 080c846f59

View File

@ -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;