ICodec: refactore setDecoderCodec and setEncoderCodec

Merge in one function: setCodec.
Clean avcodec_register_all: remove "Warning" comment

* avcodec_register_all() can be call more than one time.
* In FFMpeg/Libav code they detect if codecs are registered.