--- libavutil/opt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/libavutil/opt.c b/libavutil/opt.c index 4fe0b0b..7863623 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -801,7 +801,7 @@ static const AVClass test_class = { int main(void) { int i; - TestContext test_ctx; + TestContext test_ctx = { .class = &test_class }; const char *options[] = { "", ":", @@ -824,8 +824,6 @@ int main(void) "rational=-1/0", }; - test_ctx.class = &test_class; - printf("\nTesting av_set_options_string()\n"); av_opt_set_defaults(&test_ctx); -- 2.4.10 _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel