diff options
author | wm4 <wm4@nowhere> | 2014-04-13 18:00:51 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-04-13 18:03:01 +0200 |
commit | 78128bddda4bcea1f256fc13cc33fa2652ed277c (patch) | |
tree | 35bf6596cb8e2d7927618845833c3ee36534f890 /audio/filter/af_channels.c | |
parent | 44f382cf98564c0fe08bdc78579c284362cd6f3c (diff) | |
download | mpv-78128bddda4bcea1f256fc13cc33fa2652ed277c.tar.bz2 mpv-78128bddda4bcea1f256fc13cc33fa2652ed277c.tar.xz |
Kill all tabs
I hate tabs.
This replaces all tabs in all source files with spaces. The only
exception is old-makefile. The replacement was made by running the
GNU coreutils "expand" command on every file. Since the replacement was
automatic, it's possible that some formatting was destroyed (but perhaps
only if it was assuming that the end of a tab does not correspond to
aligning the end to multiples of 8 spaces).
Diffstat (limited to 'audio/filter/af_channels.c')
-rw-r--r-- | audio/filter/af_channels.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/audio/filter/af_channels.c b/audio/filter/af_channels.c index 6db44ba024..118607b66f 100644 --- a/audio/filter/af_channels.c +++ b/audio/filter/af_channels.c @@ -114,7 +114,7 @@ static void copy(struct af_instance *af, void* in, void* out, } default: MP_ERR(af, "Unsupported number of bytes/sample: %i" - " please report this error on the MPlayer mailing list. \n",bps); + " please report this error on the MPlayer mailing list. \n",bps); } } @@ -125,7 +125,7 @@ static int check_routes(struct af_instance *af, int nin, int nout) int i; if((s->nr < 1) || (s->nr > AF_NCH)){ MP_ERR(af, "The number of routing pairs must be" - " between 1 and %i. Current value is %i\n",AF_NCH,s->nr); + " between 1 and %i. Current value is %i\n",AF_NCH,s->nr); return AF_ERROR; } @@ -154,22 +154,22 @@ static int control(struct af_instance* af, int cmd, void* arg) int i; // Make sure this filter isn't redundant if(af->data->nch == ((struct mp_audio*)arg)->nch) - return AF_DETACH; + return AF_DETACH; // If mono: fake stereo if(((struct mp_audio*)arg)->nch == 1){ - s->nr = MPMIN(af->data->nch,2); - for(i=0;i<s->nr;i++){ - s->route[i][FR] = 0; - s->route[i][TO] = i; - } + s->nr = MPMIN(af->data->nch,2); + for(i=0;i<s->nr;i++){ + s->route[i][FR] = 0; + s->route[i][TO] = i; + } } else{ - s->nr = MPMIN(af->data->nch, ((struct mp_audio*)arg)->nch); - for(i=0;i<s->nr;i++){ - s->route[i][FR] = i; - s->route[i][TO] = i; - } + s->nr = MPMIN(af->data->nch, ((struct mp_audio*)arg)->nch); + for(i=0;i<s->nr;i++){ + s->route[i][FR] = i; + s->route[i][TO] = i; + } } } @@ -184,10 +184,10 @@ static int control(struct af_instance* af, int cmd, void* arg) // Filter data through filter static int filter(struct af_instance* af, struct mp_audio* data, int flags) { - struct mp_audio* c = data; // Current working data - struct mp_audio* l = af->data; // Local data + struct mp_audio* c = data; // Current working data + struct mp_audio* l = af->data; // Local data af_channels_t* s = af->priv; - int i; + int i; mp_audio_realloc_min(af->data, data->samples); @@ -197,7 +197,7 @@ static int filter(struct af_instance* af, struct mp_audio* data, int flags) if(AF_OK == check_routes(af,c->nch,l->nch)) for(i=0;i<s->nr;i++) copy(af, c->planes[0],l->planes[0],c->nch,s->route[i][FR], - l->nch,s->route[i][TO],mp_audio_psize(c),c->bps); + l->nch,s->route[i][TO],mp_audio_psize(c),c->bps); // Set output data c->planes[0] = l->planes[0]; |