[FFmpeg-cvslog] cmdutils: fix "oswr may be used uninitialized" warning

Michael Niedermayer git at videolan.org
Fri Apr 13 19:09:21 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Apr 13 18:38:10 2012 +0200| [41a052a6badc9ed672a810a40b8e54af5d093b5d] | committer: Michael Niedermayer

cmdutils: fix "oswr may be used uninitialized" warning

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=41a052a6badc9ed672a810a40b8e54af5d093b5d
---

 cmdutils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cmdutils.c b/cmdutils.c
index cd8b365..758a9a0 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;



More information about the ffmpeg-cvslog mailing list