summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmdutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 90c165e42e..f1edc685ed 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -200,7 +200,7 @@ int opt_default(const char *opt, const char *arg){
}
if(!o)
ret = av_set_string3(avformat_opts, opt, arg, 1, &o);
- if(!o)
+ if(!o && sws_opts)
ret = av_set_string3(sws_opts, opt, arg, 1, &o);
if(!o){
if(opt[0] == 'a')