Use enum CodecID instead of int.