aboutsummaryrefslogtreecommitdiffstats
path: root/cmdutils.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-10-28 09:39:38 +0100
committerStefano Sabatini <stefasab@gmail.com>2013-10-28 09:41:25 +0100
commit6baf9c4406bcdf1015c9ec8bd6b8c4aef77624ac (patch)
tree903100639a19f57df51cd855aad170cd1f24233f /cmdutils.c
parent0fef19b15ad93184bad70feaab08372d45277222 (diff)
downloadffmpeg-6baf9c4406bcdf1015c9ec8bd6b8c4aef77624ac.tar.gz
cmdutils: fix expected signature for show_colors() functionn2.2-dev
Fix warning: In file included from ffprobe.c:2557:0: cmdutils_common_opts.h:17:5: warning: initialization from incompatible pointer type [enabled by default] cmdutils_common_opts.h:17:5: warning: (near initialization for ‘real_options[16].u.func_arg’) [enabled by default] Spotted-by: Paul B Mahol
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 1fbd73cf84..b10a552243 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -1518,7 +1518,7 @@ int show_filters(void *optctx, const char *opt, const char *arg)
return 0;
}
-void show_colors(void *optctx, const char *opt, const char *arg)
+int show_colors(void *optctx, const char *opt, const char *arg)
{
const char *name;
const uint8_t *rgb;
@@ -1528,6 +1528,8 @@ void show_colors(void *optctx, const char *opt, const char *arg)
for (i = 0; name = av_get_known_color_name(i, &rgb); i++)
printf("%-32s #%02x%02x%02x\n", name, rgb[0], rgb[1], rgb[2]);
+
+ return 0;
}
int show_pix_fmts(void *optctx, const char *opt, const char *arg)