]> git.sesse.net Git - ffmpeg/blobdiff - libswresample/swresample.c
tools/crypto_bench: add CAST5 support
[ffmpeg] / libswresample / swresample.c
index fc58d436647b53940083b02d93f453344d321b97..b4d8f3285966ab861fcd71ba22319a95b29cef32 100644 (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;