ffmpeg | branch: master | Diego Biurrun <di...@biurrun.de> | Mon Mar 21 19:27:49 2016 +0100| [0d2fcdb1c5c9e844c232e5429130727121990d0e] | committer: Diego Biurrun
opt-test: Merge struct declaration and initialization > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0d2fcdb1c5c9e844c232e5429130727121990d0e --- libavutil/opt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavutil/opt.c b/libavutil/opt.c index 168d3dc..f2e3e6d 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); _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog