[Ffmpeg-devel] [PATCH] fix return type in opt.c

Dominik 'Rathann' Mierzejewski dominik
Sun Oct 8 21:17:44 CEST 2006

opt.c:327: warning: no return statement in function returning non-void

AFAICT opt_list return value is never checked.

MPlayer developer and RPMs maintainer: http://rpm.greysector.net/mplayer/
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
	-- from "Collected Sayings of Muad'Dib" by the Princess Irulan
-------------- next part --------------
--- MPlayer-20114/libavcodec/opt.c.lavc	2006-10-08 16:12:01.000000000 +0200
+++ MPlayer-20114/libavcodec/opt.c	2006-10-08 21:15:34.000000000 +0200
@@ -260,7 +260,7 @@
     return num*intnum/den;
-static int opt_list(void *obj, void *av_log_obj, char *unit)
+static void opt_list(void *obj, void *av_log_obj, char *unit)
     AVOption *opt=NULL;

More information about the ffmpeg-devel mailing list