From da033b05ab2f3c9dd0274243df88bd8363de6c24 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sat, 6 Mar 2010 14:09:35 +0000 Subject: [PATCH] Make opt_default() look for options in sws_opts only if sws_opts is defined, fix crash. Originally committed as revision 22232 to svn://svn.ffmpeg.org/ffmpeg/trunk --- cmdutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')