lavfi/aresample: fix style
Improve overall consistency/improve readability.
This commit is contained in:
@@ -55,20 +55,20 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (args) {
|
if (args) {
|
||||||
char *ptr=argd, *token;
|
char *ptr = argd, *token;
|
||||||
|
|
||||||
while(token = av_strtok(ptr, ":", &ptr)) {
|
while (token = av_strtok(ptr, ":", &ptr)) {
|
||||||
char *value;
|
char *value;
|
||||||
av_strtok(token, "=", &value);
|
av_strtok(token, "=", &value);
|
||||||
|
|
||||||
if(value) {
|
if (value) {
|
||||||
if((ret=av_opt_set(aresample->swr, token, value, 0)) < 0)
|
if ((ret = av_opt_set(aresample->swr, token, value, 0)) < 0)
|
||||||
goto end;
|
goto end;
|
||||||
} else {
|
} else {
|
||||||
int out_rate;
|
int out_rate;
|
||||||
if ((ret = ff_parse_sample_rate(&out_rate, token, ctx)) < 0)
|
if ((ret = ff_parse_sample_rate(&out_rate, token, ctx)) < 0)
|
||||||
goto end;
|
goto end;
|
||||||
if((ret = av_opt_set_int(aresample->swr, "osr", out_rate, 0)) < 0)
|
if ((ret = av_opt_set_int(aresample->swr, "osr", out_rate, 0)) < 0)
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user