Add ability to associate an extension with a codec.

Signed-off-by: Evan Nemerson <evan@coeus-group.com>