aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-04-13 18:38:10 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-04-13 18:38:10 +0200
commit41a052a6badc9ed672a810a40b8e54af5d093b5d (patch)
tree4dc583602f6fdab5e10b7ae60be437b652045b7d
parent2ec8789eb8f28a3e99dde329a6a36f25b68f89c4 (diff)
downloadffmpeg-41a052a6badc9ed672a810a40b8e54af5d093b5d.tar.gz
cmdutils: fix "oswr may be used uninitialized" warning
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--cmdutils.c2
1 files changed, 1 insertions, 1 deletions
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;