You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
opt-test: Merge struct declaration and initialization
This commit is contained in:
@@ -801,7 +801,7 @@ static const AVClass test_class = {
|
|||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
TestContext test_ctx;
|
TestContext test_ctx = { .class = &test_class };
|
||||||
const char *options[] = {
|
const char *options[] = {
|
||||||
"",
|
"",
|
||||||
":",
|
":",
|
||||||
@@ -824,8 +824,6 @@ int main(void)
|
|||||||
"rational=-1/0",
|
"rational=-1/0",
|
||||||
};
|
};
|
||||||
|
|
||||||
test_ctx.class = &test_class;
|
|
||||||
|
|
||||||
printf("\nTesting av_set_options_string()\n");
|
printf("\nTesting av_set_options_string()\n");
|
||||||
|
|
||||||
av_opt_set_defaults(&test_ctx);
|
av_opt_set_defaults(&test_ctx);
|
||||||
|
Reference in New Issue
Block a user