Commit a71c069d authored by stefano's avatar stefano

Make opt_default() look for options in sws_opts only if sws_opts is

defined, fix crash.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22232 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5ab49f07
......@@ -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')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment