diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-01-01 13:18:49 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-01-01 13:18:49 +0000 |
commit | f102ac7a8c62491761b7b3d32baa87dcb665f9ed (patch) | |
tree | 27ad6e8e197f81258631b4b86b3938c870e35a84 /libvo/vo_jpeg.c | |
parent | 5f684e1b32cc052edf33d8c0ff5ead106e98e680 (diff) | |
download | mpv-f102ac7a8c62491761b7b3d32baa87dcb665f9ed.tar.bz2 mpv-f102ac7a8c62491761b7b3d32baa87dcb665f9ed.tar.xz |
Fix function declarations to avoid casting function pointers.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30164 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_jpeg.c')
-rw-r--r-- | libvo/vo_jpeg.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libvo/vo_jpeg.c b/libvo/vo_jpeg.c index 72cb2a5b22..5f9a5d1f6d 100644 --- a/libvo/vo_jpeg.c +++ b/libvo/vo_jpeg.c @@ -330,8 +330,9 @@ static void check_events(void) /** \brief Validation function for values [0-100] */ -static int int_zero_hundred(int *val) +static int int_zero_hundred(void *valp) { + int *val = valp; if ( (*val >=0) && (*val<=100) ) return 1; return 0; @@ -343,15 +344,15 @@ static int preinit(const char *arg) {"progressive", OPT_ARG_BOOL, &jpeg_progressive_mode, NULL}, {"baseline", OPT_ARG_BOOL, &jpeg_baseline, NULL}, {"optimize", OPT_ARG_INT, &jpeg_optimize, - (opt_test_f)int_zero_hundred}, + int_zero_hundred}, {"smooth", OPT_ARG_INT, &jpeg_smooth, - (opt_test_f)int_zero_hundred}, + int_zero_hundred}, {"quality", OPT_ARG_INT, &jpeg_quality, - (opt_test_f)int_zero_hundred}, + int_zero_hundred}, {"dpi", OPT_ARG_INT, &jpeg_dpi, NULL}, {"outdir", OPT_ARG_MSTRZ, &jpeg_outdir, NULL}, {"subdirs", OPT_ARG_MSTRZ, &jpeg_subdirs, NULL}, - {"maxfiles", OPT_ARG_INT, &jpeg_maxfiles, (opt_test_f)int_pos}, + {"maxfiles", OPT_ARG_INT, &jpeg_maxfiles, int_pos}, {NULL, 0, NULL, NULL} }; const char *info_message = NULL; |