Ensure codec_id = CODEC_ID_NONE for unknown codecs (don't reuse previous one).