[PATCH] Make opt_default() look for options in sws_opts only if sws_opts is defined, fix crash.

Stefano Sabatini stefano.sabatini-lala
Sat Mar 6 13:45:56 CET 2010


---
 cmdutils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cmdutils.c b/cmdutils.c
index 90c165e..f1edc68 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')
-- 
1.6.6.1


--1UWUbFP1cBYEclgG--



More information about the ffmpeg-devel mailing list