don't crash on null codec; by matthieu castet <castet DOT matthieu AT free DOT fr>