[FFmpeg-cvslog] avconv: Correct function pointer assignments in options array
Diego Biurrun
git at videolan.org
Fri Mar 31 00:23:26 EEST 2017
ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Mon Nov 9 12:54:53 2015 +0100| [943533d64c7fa7a1b2fc9559e67652c349d21d51] | committer: Diego Biurrun
avconv: Correct function pointer assignments in options array
Fixes several warnings of the type
avconv_opt.c:2356:5: warning: ISO C forbids initialization between function pointer and ‘void *’ [-Wpedantic]
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=943533d64c7fa7a1b2fc9559e67652c349d21d51
---
avconv_opt.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/avconv_opt.c b/avconv_opt.c
index ba37a3a..1064cf4 100644
--- a/avconv_opt.c
+++ b/avconv_opt.c
@@ -2539,7 +2539,7 @@ const OptionDef options[] = {
{ "target", HAS_ARG | OPT_PERFILE | OPT_OUTPUT, { .func_arg = opt_target },
"specify target file type (\"vcd\", \"svcd\", \"dvd\","
" \"dv\", \"dv50\", \"pal-vcd\", \"ntsc-svcd\", ...)", "type" },
- { "vsync", HAS_ARG | OPT_EXPERT, { opt_vsync },
+ { "vsync", HAS_ARG | OPT_EXPERT, { .func_arg = opt_vsync },
"video sync method", "" },
{ "async", HAS_ARG | OPT_INT | OPT_EXPERT, { &audio_sync_method },
"audio sync method", "" },
@@ -2619,9 +2619,9 @@ const OptionDef options[] = {
{ "passlogfile", OPT_VIDEO | HAS_ARG | OPT_STRING | OPT_EXPERT | OPT_SPEC |
OPT_OUTPUT, { .off = OFFSET(passlogfiles) },
"select two pass log file name prefix", "prefix" },
- { "vstats", OPT_VIDEO | OPT_EXPERT , { &opt_vstats },
+ { "vstats", OPT_VIDEO | OPT_EXPERT , { .func_arg = &opt_vstats },
"dump video coding statistics to file" },
- { "vstats_file", OPT_VIDEO | HAS_ARG | OPT_EXPERT , { opt_vstats_file },
+ { "vstats_file", OPT_VIDEO | HAS_ARG | OPT_EXPERT , { .func_arg = opt_vstats_file },
"dump video coding statistics to file", "file" },
{ "vf", OPT_VIDEO | HAS_ARG | OPT_PERFILE | OPT_OUTPUT, { .func_arg = opt_video_filters },
"video filters", "filter list" },
More information about the ffmpeg-cvslog
mailing list