Allow setting of codec.