mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 02:12:28 +00:00
avfilter/af_sofalizer: Fix "warning: ISO C90 forbids mixed declarations and code"
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
f1a3677c0f
commit
c34250178b
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user