diff --git a/converter/avcodecs.py b/converter/avcodecs.py index 48fd0105..66e015e8 100644 --- a/converter/avcodecs.py +++ b/converter/avcodecs.py @@ -29,11 +29,11 @@ def safe_options(self, opts): for k, v in opts.items(): if k in self.encoder_options: typ = self.encoder_options[k] - try: - safe[k] = typ(v) - except: - pass - + if typ: + try: + safe[k] = typ(v) + except: + pass return safe