[FFmpeg-devel] [PATCH] fix opt_loglevel
Wolfram Gloger
wmglo
Fri Apr 24 12:12:36 CEST 2009
Hi,
Should be obvious; using the result of a void function (in
parse_options()) is not so good.
Regards,
Wolfram.
--- trunk/ffmpeg.c 2009-04-23 21:02:01.000000000 +0200
+++ ffmpeg-wg/ffmpeg.c 2009-04-23 21:51:20.000000000 +0200
@@ -2379,10 +2379,11 @@
return 0;
}
-static void opt_loglevel(const char *opt, const char *arg)
+static int opt_loglevel(const char *opt, const char *arg)
{
int level = parse_number_or_die(opt, arg, OPT_INT, INT_MIN, INT_MAX);
av_log_set_level(level);
+ return 0;
}
static int opt_verbose(const char *opt, const char *arg)
More information about the ffmpeg-devel
mailing list