aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-03-14 22:40:09 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-03-14 22:40:38 +0100
commitc34250178ba279a0e60a0c77823c967717ddec5b (patch)
tree477150214d668da6bdad1dd73c3dd34af0e03a27 /libavfilter
parentf1a3677c0f31225260cdcd75146b87f8ff47c9b9 (diff)
downloadffmpeg-c34250178ba279a0e60a0c77823c967717ddec5b.tar.gz
avfilter/af_sofalizer: Fix "warning: ISO C90 forbids mixed declarations and code"
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/af_sofalizer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/af_sofalizer.c b/libavfilter/af_sofalizer.c
index 2d18b7fbb1..e2553b6800 100644
--- a/libavfilter/af_sofalizer.c
+++ b/libavfilter/af_sofalizer.c
@@ -316,6 +316,7 @@ static int load_sofa(AVFilterContext *ctx, char *filename, int *samplingrate)
if (!strncmp(data_delay_dim_name, "I", 2)) {
/* check 2 characters to assure string is 0-terminated after "I" */
int delay[2]; /* delays get from SOFA file: */
+ int *data_delay_r;
av_log(ctx, AV_LOG_DEBUG, "Data.Delay has dimension [I R]\n");
status = nc_get_var_int(ncid, data_delay_id, &delay[0]);
@@ -324,7 +325,7 @@ static int load_sofa(AVFilterContext *ctx, char *filename, int *samplingrate)
ret = AVERROR(EINVAL);
goto error;
}
- int *data_delay_r = data_delay + m_dim;
+ data_delay_r = data_delay + m_dim;
for (i = 0; i < m_dim; i++) { /* extend given dimension [I R] to [M R] */
/* assign constant delay value for all measurements to data_delay fields */
data_delay[i] = delay[0];