let user set codec even if CODEC_ID_NONE is default patch by (Luca Abeni: lucabe72...