Commit d3044cf3 authored by Diego Biurrun's avatar Diego Biurrun

opt-test: Move some variable declarations to avoid block braces

parent a84713e7
......@@ -801,9 +801,6 @@ static const AVClass test_class = {
int main(void)
{
int i;
printf("\nTesting av_set_options_string()\n");
{
TestContext test_ctx;
const char *options[] = {
"",
......@@ -828,6 +825,9 @@ int main(void)
};
test_ctx.class = &test_class;
printf("\nTesting av_set_options_string()\n");
av_opt_set_defaults(&test_ctx);
test_ctx.string = av_strdup("default");
if (!test_ctx.string)
......@@ -835,13 +835,12 @@ int main(void)
av_log_set_level(AV_LOG_DEBUG);
for (i=0; i < FF_ARRAY_ELEMS(options); i++) {
for (i = 0; i < FF_ARRAY_ELEMS(options); i++) {
av_log(&test_ctx, AV_LOG_DEBUG, "Setting options string '%s'\n", options[i]);
if (av_set_options_string(&test_ctx, options[i], "=", ":") < 0)
av_log(&test_ctx, AV_LOG_ERROR, "Error setting options string: '%s'\n", options[i]);
printf("\n");
}
}
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment