1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

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
This commit is contained in:
Stefano Sabatini 2010-03-06 14:09:35 +00:00
parent 6ce98ea4ae
commit da033b05ab

View File

@ -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')