提交 da033b05 编写于 作者: S Stefano Sabatini

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
上级 6ce98ea4
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册