From: Michael Niedermayer Date: Fri, 13 Apr 2012 16:38:10 +0000 (+0200) Subject: cmdutils: fix "oswr may be used uninitialized" warning X-Git-Tag: android-x86-4.4-r1~12428 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=41a052a6badc9ed672a810a40b8e54af5d093b5d;p=android-x86%2Fexternal-ffmpeg.git cmdutils: fix "oswr may be used uninitialized" warning Signed-off-by: Michael Niedermayer --- diff --git a/cmdutils.c b/cmdutils.c index cd8b365abc..758a9a041c 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -418,7 +418,7 @@ void parse_loglevel(int argc, char **argv, const OptionDef *options) #define FLAGS(o) ((o)->type == AV_OPT_TYPE_FLAGS) ? AV_DICT_APPEND : 0 int opt_default(const char *opt, const char *arg) { - const AVOption *oc, *of, *os, *oswr; + const AVOption *oc, *of, *os, *oswr = NULL; char opt_stripped[128]; const char *p; const AVClass *cc = avcodec_get_class(), *fc = avformat_get_class(), *sc, *swr_class;