You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
opt-test: Move some variable declarations to avoid block braces
This commit is contained in:
@@ -801,9 +801,6 @@ static const AVClass test_class = {
|
|||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
printf("\nTesting av_set_options_string()\n");
|
|
||||||
{
|
|
||||||
TestContext test_ctx;
|
TestContext test_ctx;
|
||||||
const char *options[] = {
|
const char *options[] = {
|
||||||
"",
|
"",
|
||||||
@@ -828,6 +825,9 @@ int main(void)
|
|||||||
};
|
};
|
||||||
|
|
||||||
test_ctx.class = &test_class;
|
test_ctx.class = &test_class;
|
||||||
|
|
||||||
|
printf("\nTesting av_set_options_string()\n");
|
||||||
|
|
||||||
av_opt_set_defaults(&test_ctx);
|
av_opt_set_defaults(&test_ctx);
|
||||||
test_ctx.string = av_strdup("default");
|
test_ctx.string = av_strdup("default");
|
||||||
if (!test_ctx.string)
|
if (!test_ctx.string)
|
||||||
@@ -841,7 +841,6 @@ int main(void)
|
|||||||
av_log(&test_ctx, AV_LOG_ERROR, "Error setting options string: '%s'\n", options[i]);
|
av_log(&test_ctx, AV_LOG_ERROR, "Error setting options string: '%s'\n", options[i]);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user